]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
Fix postinstall script not removing watchdog-mux.socket
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 4 Feb 2016 09:49:53 +0000 (10:49 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 4 Feb 2016 17:23:19 +0000 (18:23 +0100)
watchdog-mux.socket was removed in f8a3fc80af but the
postinstall script used -e instead of -L to test for the
symlink, which fails since the destination is already
removed at that point.

Use -L and remove the dead symlink if it exists.

Reported-by: Alexandre Derumier <aderumier@odiso.com>
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