Skip to content

Commit

Permalink
Merge pull request #1288 from pi-hole/allow_empty_ftconf
Browse files Browse the repository at this point in the history
Allow for empty strings to be passed into FTLCONF_ environment variables
  • Loading branch information
PromoFaux authored Jan 20, 2023
2 parents 637ce65 + 7efb80f commit 52ee954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/s6/debian-root/usr/local/bin/bash_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ apply_FTL_Configs_From_Env(){
# Get all exported environment variables starting with FTLCONF_ as a prefix and call the changeFTLsetting
# function with the environment variable's suffix as the key. This allows applying any pihole-FTL.conf
# setting defined here: https://docs.pi-hole.net/ftldns/configfile/
declare -px | grep FTLCONF_ | sed -E 's/declare -x FTLCONF_([^=]+)=\"(.+)\"/\1 \2/' | while read -r name value
declare -px | grep FTLCONF_ | sed -E 's/declare -x FTLCONF_([^=]+)=\"(|.+)\"/\1 \2/' | while read -r name value
do
echo " [i] Applying pihole-FTL.conf setting $name=$value"
changeFTLsetting "$name" "$value"
Expand Down

0 comments on commit 52ee954

Please sign in to comment.