mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Don't kill already existing setupVars.conf on update (and fresh install)
This commit is contained in:
parent
a0019d86c5
commit
ec8c848106
1 changed files with 2 additions and 4 deletions
|
@ -872,10 +872,8 @@ configureFirewall() {
|
|||
}
|
||||
|
||||
finalExports() {
|
||||
#If it already exists, lets overwrite it with the new values.
|
||||
if [[ -f ${setupVars} ]]; then
|
||||
rm ${setupVars}
|
||||
fi
|
||||
# Update variables in setupVars.conf file
|
||||
sed -i.update.bak '/PIHOLE_DOMAIN/d;/IPV4_ADDRESS/d;/IPV6_ADDRESS/d;/PIHOLE_DNS_1/d;/PIHOLE_DNS_2/d;/QUERY_LOGGING/d;' "${setupVars}"
|
||||
{
|
||||
echo "PIHOLE_INTERFACE=${PIHOLE_INTERFACE}"
|
||||
echo "IPV4_ADDRESS=${IPV4_ADDRESS}"
|
||||
|
|
Loading…
Reference in a new issue