mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-22 23:36:05 +02:00
Change password
This commit is contained in:
@@ -46,5 +46,6 @@ fi
|
|||||||
if bashio::config.has_value 'PASSWORD'; then
|
if bashio::config.has_value 'PASSWORD'; then
|
||||||
bashio::log.info "Setting password to the value defined in options"
|
bashio::log.info "Setting password to the value defined in options"
|
||||||
PASSWORD=$(bashio::config 'PASSWORD')
|
PASSWORD=$(bashio::config 'PASSWORD')
|
||||||
usermod --password $(echo "$PASSWORD") | openssl passwd -1 -stdin) abc
|
passwd -d abc
|
||||||
|
echo -e "$PASSWORD\n$PASSWORD" | passwd abc
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user