From f4cfbad0bcaf5e3bb37a4b838a75f7a219cc93b0 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:12:24 +0100 Subject: [PATCH] Force text PASSWORD to "empty" if "null" https://github.com/alexbelgium/hassio-addons/issues/1128 --- portainer/rootfs/etc/services.d/portainer/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portainer/rootfs/etc/services.d/portainer/run b/portainer/rootfs/etc/services.d/portainer/run index d7d6afc9f..d60aa9322 100644 --- a/portainer/rootfs/etc/services.d/portainer/run +++ b/portainer/rootfs/etc/services.d/portainer/run @@ -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