]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - debian/postinst
Fix postinstall script not removing watchdog-mux.socket
[pve-ha-manager.git] / debian / postinst
index 667888d6adc62dfdbe1bea817d13b7124397f22f..385f78f09ed224a4ce20e918ee2540977f9d6771 100755 (executable)
@@ -26,7 +26,7 @@ case "$1" in
 
       # remove the systemd watchdog mux socket service
       # as watchdog-mux should handle this on it's own
-      if [ -e  /etc/systemd/system/sockets.target.wants/watchdog-mux.socket ]; then
+      if [ -L  /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