summarylogtreecommitdiffstats
path: root/pi-hole-server.install
blob: 4209eb5220463566aed57e54b89751ea92d5518e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_install() {
  cat <<- EOF
    ==> please read configuration instructions at /usr/share/doc/pihole/configuration
    ==> ver. 2.5.3-3: dnsmasq and lighttpd conf files are changed, please repeat the installation steps
    ==> first install/update run...
EOF
  chown -R http.http /srv/http/pihole
  systemd-tmpfiles --create pi-hole.conf
  /usr/bin/gravity.sh > /dev/null
  systemctl daemon-reload > /dev/null
  systemctl start pi-hole-gravity.timer > /dev/null
  systemctl start pi-hole-logtruncate.timer > /dev/null
}

post_upgrade() {
  post_install $1
}

post_remove() {
  rm -R /etc/pihole/
  rm /run/log/pihole.log
}