summarylogtreecommitdiffstats
path: root/pi-hole-ftl.install
blob: c1ea6cab91d20a260532570687f2c5a2e4a14405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
  systemd-tmpfiles --create pi-hole-ftl.conf

  systemctl daemon-reload > /dev/null
  systemctl is-active pi-hole-ftl.service 2>&1 >/dev/null || systemctl restart pi-hole-ftl.service
}

post_upgrade() {
  post_install $1
}

post_remove() {
  userdel -f pihole
}