[pve-devel] [PATCH manager 04/15] postinst: purge all old init.d service files on upgrade
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Jan 24 14:12:29 CET 2018
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
debian/postinst | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/debian/postinst b/debian/postinst
index 23355ebd..1962f6ac 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -50,9 +50,8 @@ case "$1" in
fi
# remove old/usused init.d files
- rm -f /etc/init.d/pvebanner
- rm -f /etc/init.d/pvenetcommit
- rm -f /etc/init.d/pve-manager
+ OLD_INITD_FILES="pvebanner pvenetcommit pve-manager pvedaemon pveproxy pvestatd spiceproxy"
+ for f in ${OLD_INITD_FILES}; do rm -f "/etc/init.d/$f"; done
# create new daily randomize update cronjob if not exist
MIN="$(shuf -i 0-59 -n 1)"
--
2.14.2
More information about the pve-devel
mailing list