Update pihole after setting a static local IP address

This commit is contained in:
Bob Mottram 2016-10-19 11:37:19 +01:00
parent d925c4f00d
commit e7363daa76
1 changed files with 6 additions and 0 deletions

View File

@ -1373,6 +1373,12 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168
echo '# network 192.168.7.0' >> /etc/network/interfaces
echo '# gateway 192.168.7.1' >> /etc/network/interfaces
fi
# if pi-hole is installed then update the IP address it uses
if [ -f /usr/local/bin/pihole ]; then
function_check pihole_update
pihole_update
fi
fi
}