mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-14 00:44:18 +01:00
Force text PASSWORD to "empty" if "null"
https://github.com/alexbelgium/hassio-addons/issues/1128
This commit is contained in:
@@ -52,11 +52,11 @@ fi
|
||||
|
||||
# Define option
|
||||
if bashio::config.has_value 'password' ; then
|
||||
echo -n $PASSWORD > /data/portainer_password
|
||||
echo -n "${PASSWORD:-empty}" > /data/portainer_password
|
||||
options+=(--admin-password-file /data/portainer_password)
|
||||
bashio::log.info "... password set to $PASSWORD"
|
||||
else
|
||||
echo -n $PASSWORD > /data/portainer_password
|
||||
echo -n "${PASSWORD:-empty}" > /data/portainer_password
|
||||
bashio::log.info "... starting without predefined password"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user