nft-dns/debian/prerm
2023-08-29 19:47:56 +02:00

14 lines
324 B
Bash
Executable File

#!/usr/bin/env bash
case "$1" in
upgrade)
[ -d /run/systemd/system/ ] && systemctl stop nft-dns
exit 0
;;
remove)
[ -d /run/systemd/system/ ] && systemctl stop nft-dns
[ -d /run/systemd/system/ ] && systemctl disable nft-dns
exit 0
;;
*)
;;
esac