Merge pull request #990 from pi-hole/dontkillsetupVars.conf

Don't kill setupVars.conf on update/fresh install
pull/992/head
Adam Warner 8 years ago committed by GitHub
commit 10982a0f45

@ -872,9 +872,9 @@ configureFirewall() {
}
finalExports() {
#If it already exists, lets overwrite it with the new values.
if [[ -f ${setupVars} ]]; then
rm ${setupVars}
# Update variables in setupVars.conf file
if [ -e "${setupVars}" ]; then
sed -i.update.bak '/PIHOLE_INTERFACE/d;/IPV4_ADDRESS/d;/IPV6_ADDRESS/d;/PIHOLE_DNS_1/d;/PIHOLE_DNS_2/d;/QUERY_LOGGING/d;' "${setupVars}"
fi
{
echo "PIHOLE_INTERFACE=${PIHOLE_INTERFACE}"

Loading…
Cancel
Save