blob: 574620ae2e9e711d93f56c7b837f832caacc8ccd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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 Neutrino emissions detected..."
[ -e /proc/net/if_inet6 ] && touch /etc/pihole/.useIPv6 #this will be obsoleted soon
/opt/pihole/mimic_setupVars.conf.sh
/usr/bin/pihole updateGravity > /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/.useIPv6 ] && rm /etc/pihole/.useIPv6
post_install $1
}
post_remove() {
rm -R /etc/pihole/
}
|