mirror of
https://github.com/azlux/nft-dns.git
synced 2025-01-18 08:03:28 +00:00
14 lines
324 B
Bash
Executable File
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 |