explicitly test for pwhash containing a value beginning $BALOON-SHA256

This commit is contained in:
Adam Warner 2023-10-28 19:47:59 +01:00
parent 5c7ff5c539
commit 335ec7e40d
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

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