With #DEBHELPER# the manual maintained code will be autogenerated, no need to manually track which services and timers this packages has.
Signed-off-by: Thomas Lamprecht <t.lampre...@proxmox.com> --- debian/postrm | 34 +--------------------------------- debian/rules | 2 +- 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/debian/postrm b/debian/postrm index 5cc18ca4..e4d53294 100755 --- a/debian/postrm +++ b/debian/postrm @@ -19,36 +19,4 @@ case "$1" in ;; esac -# same as dh_systemd_enable (code copied) -systemctl --system daemon-reload >/dev/null || true - -PVESERVICES="pvedaemon pveproxy spiceproxy pvestatd pvebanner pvenetcommit pve-guests" -PVETIMERS="pvesr" - -if [ "$1" = "remove" ]; then - for timer in ${PVETIMERS}; do - if [ -x "/usr/bin/deb-systemd-helper" ]; then - deb-systemd-helper mask $timer.timer >/dev/null - fi - done - for service in ${PVESERVICES}; do - if [ -x "/usr/bin/deb-systemd-helper" ]; then - deb-systemd-helper mask $service.service >/dev/null - fi - done -fi - -if [ "$1" = purge ]; then - for timer in ${PVETIMERS}; do - if [ -x "/usr/bin/deb-systemd-helper" ]; then - deb-systemd-helper purge $timer.timer >/dev/null - deb-systemd-helper unmask $timer.timer >/dev/null - fi - done - for service in ${PVESERVICES}; do - if [ -x "/usr/bin/deb-systemd-helper" ]; then - deb-systemd-helper purge $service.service >/dev/null - deb-systemd-helper unmask $service.service >/dev/null - fi - done -fi +#DEBHELPER# diff --git a/debian/rules b/debian/rules index f2c2cb77..048483aa 100755 --- a/debian/rules +++ b/debian/rules @@ -10,4 +10,4 @@ override_dh_fixperms: dh_fixperms -Xpvemailforward -Xvar/log/pveproxy %: - dh $@ + dh $@ --with=systemd -- 2.14.2 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel