summarylogtreecommitdiffstats
path: root/pi-hole-standalone.install
diff options
context:
space:
mode:
authormax.bra2016-10-04 13:19:57 +0200
committermax.bra2016-10-04 13:19:57 +0200
commit8bf0f77d128d22f6f5c18a9f16b249185e120bec (patch)
treea1562ced9b987767a24630829b5efbf11d1f098a /pi-hole-standalone.install
parentfd33fb6136acc42555c70d6a53c93d1399ee347a (diff)
downloadaur-8bf0f77d128d22f6f5c18a9f16b249185e120bec.tar.gz
first alignment with upstream setupVars.conf utilization
Diffstat (limited to 'pi-hole-standalone.install')
-rw-r--r--pi-hole-standalone.install8
1 files changed, 5 insertions, 3 deletions
diff --git a/pi-hole-standalone.install b/pi-hole-standalone.install
index 347b84aaeca0..574620ae2e9e 100644
--- a/pi-hole-standalone.install
+++ b/pi-hole-standalone.install
@@ -1,13 +1,15 @@
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
- /usr/bin/gravity.sh > /dev/null
+ [ -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 start pi-hole-gravity.timer > /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
}