]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - debian/postinst
cleanup postinst script
[pve-ha-manager.git] / debian / postinst
index def84e0b91f8e3a864e10506e6423db471d80883..e966057ca4f65fe6ba7ec5a94c0fccffd8a53087 100755 (executable)
@@ -26,9 +26,13 @@ case "$1" in
 
       # remove the systemd watchdog mux socket service
       # as watchdog-mux should handle this on it's own
-      rm -f /etc/systemd/system/sockets.target.wants/watchdog-mux.socket
-      rm -f /var/lib/systemd/deb-systemd-helper-enabled/sockets.target.wants/watchdog-mux.socket
-      rm -f /var/lib/systemd/deb-systemd-helper-enabled/watchdog-mux.socket.dsh-also
+      if [ -e  /etc/systemd/system/sockets.target.wants/watchdog-mux.socket ]; then
+         rm -f /etc/systemd/system/sockets.target.wants/watchdog-mux.socket
+         rm -f /var/lib/systemd/deb-systemd-helper-enabled/sockets.target.wants/watchdog-mux.socket
+         rm -f /var/lib/systemd/deb-systemd-helper-enabled/watchdog-mux.socket.dsh-also
+         systemctl daemon-reload
+      fi
+
       ;;
 
   abort-upgrade|abort-remove|abort-deconfigure)