When setting a blank password, use webserver.api.password instead of webserver.api.pwhash (#5465)

This commit is contained in:
DL6ER 2023-11-04 17:43:09 +01:00 committed by GitHub
commit 395110f92f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -145,4 +145,8 @@ getFTLConfigValue(){
#######################
setFTLConfigValue(){
pihole-FTL --config "${1}" "${2}" >/dev/null
if [[ $? -eq 5 ]]; then
echo -e " ${CROSS} ${1} set by environment variable. Please unset it to use this function"
exit 5
fi
}