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>
# 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