Closed kujyp closed 4 years ago
$ flexget -c /config/config.yml web passwd webuipasswd | grep 'Updated password' >/dev/null && echo success || echo failure
> success
$ flexget -c /config/config.yml web passwd 1234 | grep 'Updated password' >/dev/null && echo success || echo failure
> failure
Thanks for the fix!
https://github.com/wiserain/docker-flexget/blob/2f9ed8b9b56a98060af7d4106a56bd5660199fa7/root/etc/cont-init.d/20-config#L38-L44
If 'Password is not strong enough',
flexget web passwd
command fails but it returns exitcode '0'(success).So this shell conditional statement doesn't work.
flexget -c /config/config.yml web passwd "${FG_WEBUI_PASSWD}" && <succeed> || <fail>