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 }