Change password

This commit is contained in:
Alexandre
2022-02-08 07:06:55 +01:00
committed by GitHub
parent 71ba2b2671
commit 9704ed2905

View File

@@ -46,5 +46,6 @@ fi
if bashio::config.has_value 'PASSWORD'; then
bashio::log.info "Setting password to the value defined in options"
PASSWORD=$(bashio::config 'PASSWORD')
usermod --password $(echo "$PASSWORD") | openssl passwd -1 -stdin) abc
passwd -d abc
echo -e "$PASSWORD\n$PASSWORD" | passwd abc
fi