Force text PASSWORD to "empty" if "null"

https://github.com/alexbelgium/hassio-addons/issues/1128
This commit is contained in:
Alexandre
2023-12-11 11:12:24 +01:00
committed by GitHub
parent ea0a53d499
commit f4cfbad0bc

View File

@@ -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