diff --git a/debian/prometheus-entrouvert-exporter.postinst b/debian/prometheus-entrouvert-exporter.postinst index 59815b0..f90bc59 100644 --- a/debian/prometheus-entrouvert-exporter.postinst +++ b/debian/prometheus-entrouvert-exporter.postinst @@ -5,7 +5,7 @@ set -e case "$1" in configure) # remove obsolete timer - test -e /etc/systemd/system/timers.target.wants/prometheus-entrouvert-exporter.timer && systemctl disable prometheus-entrouvert-exporter.timer + test -L /etc/systemd/system/timers.target.wants/prometheus-entrouvert-exporter.timer && systemctl disable prometheus-entrouvert-exporter.timer ;; abort-upgrade|abort-remove|abort-deconfigure|triggered)