mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 21:04:05 +02: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
|
# Define option
|
||||||
if bashio::config.has_value 'password' ; then
|
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)
|
options+=(--admin-password-file /data/portainer_password)
|
||||||
bashio::log.info "... password set to $PASSWORD"
|
bashio::log.info "... password set to $PASSWORD"
|
||||||
else
|
else
|
||||||
echo -n $PASSWORD > /data/portainer_password
|
echo -n "${PASSWORD:-empty}" > /data/portainer_password
|
||||||
bashio::log.info "... starting without predefined password"
|
bashio::log.info "... starting without predefined password"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user