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-guests"
28 if [ "$1" = "remove" ]; then
29 for timer
in ${PVETIMERS}; do
30 if [ -x "/usr/bin/deb-systemd-helper" ]; then
31 deb-systemd-helper mask
$timer.timer
>/dev
/null
34 for service
in ${PVESERVICES}; do
35 if [ -x "/usr/bin/deb-systemd-helper" ]; then
36 deb-systemd-helper mask
$service.service
>/dev
/null
41 if [ "$1" = purge
]; then
42 for timer
in ${PVETIMERS}; do
43 if [ -x "/usr/bin/deb-systemd-helper" ]; then
44 deb-systemd-helper purge
$timer.timer
>/dev
/null
45 deb-systemd-helper unmask
$timer.timer
>/dev
/null
48 for service
in ${PVESERVICES}; do
49 if [ -x "/usr/bin/deb-systemd-helper" ]; then
50 deb-systemd-helper purge
$service.service
>/dev
/null
51 deb-systemd-helper unmask
$service.service
>/dev
/null