Signed-off-by: Thomas Lamprecht <t.lampre...@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


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to