Merge pull request #1276 from pi-hole/fix/INSTALL_WEB

Bugfix: Delete INSTALL_WEB line before adding new one
This commit is contained in:
Mcat12 2017-02-25 10:50:09 -05:00 committed by GitHub
commit 66d7ebd6c3
1 changed files with 1 additions and 1 deletions

View File

@ -964,7 +964,7 @@ finalExports() {
# 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}"
sed -i.update.bak '/PIHOLE_INTERFACE/d;/IPV4_ADDRESS/d;/IPV6_ADDRESS/d;/PIHOLE_DNS_1/d;/PIHOLE_DNS_2/d;/QUERY_LOGGING/d;/INSTALL_WEB/d;' "${setupVars}"
fi
{
echo "PIHOLE_INTERFACE=${PIHOLE_INTERFACE}"