1
0
mirror of https://github.com/azlux/dpkg-deb synced 2024-11-23 14:56:10 +00:00
dpkg-deb/webhookd/DEBIAN/prerm
2020-02-03 21:09:18 +01:00

13 lines
305 B
Bash
Executable File

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