3 # Abort if any command returns an error value
8 rm -rf /var
/log
/pveproxy
9 rm -rf /var
/lib
/pve-manager
12 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear
)
13 rm -f /etc
/cron.d
/pveupdate
17 echo "postrm called with unknown argument \`$1'" >&2
22 # same as dh_systemd_enable (code copied)
23 systemctl
--system daemon-reload
>/dev
/null || true
25 PVESERVICES
="pvedaemon pveproxy spiceproxy pvestatd pvebanner pvenetcommit pve-manager"
26 if [ "$1" = "remove" ]; then
27 for service
in ${PVESERVICES}; do
28 echo "REMOVETEST $service";
29 if [ -x "/usr/bin/deb-systemd-helper" ]; then
30 deb-systemd-helper mask
$service.service
>/dev
/null
35 if [ "$1" = purge
]; then
36 for service
in ${PVESERVICES}; do
37 echo "PURGETEST $service";
38 if [ -x "/usr/bin/deb-systemd-helper" ]; then
39 deb-systemd-helper purge
$service.service
>/dev
/null
40 deb-systemd-helper unmask
$service.service
>/dev
/null