From b61c37414a1d9ed2a4f44f3333ed2536130d7573 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 29 Jan 2025 15:58:59 +0100 Subject: [PATCH] Update 80-configuration.sh --- webtop/rootfs/etc/cont-init.d/80-configuration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webtop/rootfs/etc/cont-init.d/80-configuration.sh b/webtop/rootfs/etc/cont-init.d/80-configuration.sh index 7aa9a2ab1..a71f72e29 100755 --- a/webtop/rootfs/etc/cont-init.d/80-configuration.sh +++ b/webtop/rootfs/etc/cont-init.d/80-configuration.sh @@ -42,7 +42,7 @@ if bashio::config.has_value 'PASSWORD'; then PASSWORD=$(bashio::config 'PASSWORD') passwd -d abc echo -e "$PASSWORD\n$PASSWORD" | passwd abc -elif ! bashio::config.has_value 'PASSWORD' && [[ -z "$(bashio::addon.port "3000")" ]] && [[ -z $(bashio::addon.port "3001") ]]; then +elif ! bashio::config.has_value 'PASSWORD' && [[ -n "$(bashio::addon.port "3000")" ]] && [[ -n $(bashio::addon.port "3001") ]]; then bashio::log.warning "SEVERE RISK IDENTIFIED" bashio::log.warning "You are opening an external port but your password is not defined" bashio::log.warning "You risk being hacked ! Please disable the external ports, or use a password"