From 335ec7e40de54871727a316903b83a0c120b8937 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sat, 28 Oct 2023 19:47:59 +0100 Subject: [PATCH] explicitly test for pwhash containing a value beginning $BALOON-SHA256 --- src/bash_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bash_functions.sh b/src/bash_functions.sh index d30df93..0c69f51 100644 --- a/src/bash_functions.sh +++ b/src/bash_functions.sh @@ -72,7 +72,7 @@ setup_web_password() { fi # Exit if password is already set in config file - if [[ -n $(pihole-FTL --config webserver.api.pwhash) ]]; then + if [[ $(pihole-FTL --config webserver.api.pwhash) = \$BALLOON-SHA256* ]]; then echo " [i] Password already set in config file" return fi