From 81f83e7be5ea9f15dd0198a523e8230aa0bdd5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 23 Aug 2021 21:55:17 +0200 Subject: [PATCH] debian: use proper test for symlink --- debian/prometheus-entrouvert-exporter.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)