summarylogtreecommitdiffstats
path: root/pi-hole-standalone.install
diff options
context:
space:
mode:
Diffstat (limited to 'pi-hole-standalone.install')
-rw-r--r--pi-hole-standalone.install10
1 files changed, 7 insertions, 3 deletions
diff --git a/pi-hole-standalone.install b/pi-hole-standalone.install
index da4099a566e0..b714cdce4275 100644
--- a/pi-hole-standalone.install
+++ b/pi-hole-standalone.install
@@ -1,22 +1,26 @@
post_install() {
echo -e "\e[1;33m==>\e[0m Please read configuration instructions at /usr/share/doc/pihole/configuration"
- echo -e "\e[1;33m==>\e[0m \e[1;31mVer. 2.9.5-2\e[0m: dnsmasq conf file is changed"
- echo -e "\e[1;33m==>\e[0m \e[1;31mAttention\e[0m: dnsmasq config files used are now two and both mandatory."
- echo -e "\e[1;33m==>\e[0m Pay attention to the name of the destination dnsmasq include config file"
+ echo -e "\e[1;33m==>\e[0m \e[1;31mVer. 2.11-1\e[0m: dnsmasq conf files are changed"
+ echo -e "\e[1;33m==>\e[0m Pay attention: this package now manage all dnsmasq.d include files"
echo -e "\e[1;33m==>\e[0m Please follow configuration upgrade steps"
echo -e "\e[1;33m==>\e[0m Neutrino emissions detected..."
[ -e /proc/net/if_inet6 ] && touch /etc/pihole/.useIPv6 #this will be obsoleted soon
+ touch /etc/dnsmasq.d/02-pihole-dhcp.conf
/opt/pihole/mimic_setupVars.conf.sh
/usr/bin/pihole updateGravity > /dev/null
+ /usr/bin/pihole -a setdns 8.8.8.8 8.8.4.4 > /dev/null
systemctl daemon-reload > /dev/null
systemctl is-active pi-hole-gravity.timer 2>&1 >/dev/null || systemctl start pi-hole-gravity.timer
}
post_upgrade() {
+ [ -e /etc/pihole/hosts ] && rm /etc/pihole/hosts
[ -e /etc/pihole/.useIPv6 ] && rm /etc/pihole/.useIPv6
post_install $1
}
post_remove() {
rm -R /etc/pihole/
+ [ -e /run/log/pihole.log ] && rm /run/log/pihole.log
+ [ -e /etc/dnsmasq.d/02-pihole-dhcp.conf ] && rm /etc/dnsmasq.d/02-pihole-dhcp.conf
}