debian: add postinst to remove obsolete timer unit

This commit is contained in:
Frédéric Péters 2021-08-23 21:52:19 +02:00
parent be945bc9e7
commit 83b8c5340b
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
#! /bin/sh
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
;;
abort-upgrade|abort-remove|abort-deconfigure|triggered)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0