maintainer scripts: use dpkg-maintscript-helper to clean out /etc/cron.d/dsa-nagios...
authorPeter Palfrader <peter@palfrader.org>
Fri, 2 Feb 2018 10:16:55 +0000 (11:16 +0100)
committerPeter Palfrader <peter@palfrader.org>
Fri, 2 Feb 2018 10:18:29 +0000 (11:18 +0100)
dsa-nagios-checks/debian/changelog
dsa-nagios-checks/debian/postinst
dsa-nagios-checks/debian/postrm
dsa-nagios-checks/debian/preinst [new file with mode: 0644]

index 599c530..10ea8be 100644 (file)
@@ -1,6 +1,7 @@
 dsa-nagios-checks (112) UNRELEASED; urgency=medium
 
-  * 
+  * maintainer scripts: use dpkg-maintscript-helper to clean out
+    /etc/cron.d/dsa-nagios-checks.
 
  -- Peter Palfrader <weasel@debian.org>  Thu, 01 Feb 2018 18:31:35 +0100
 
index c1fb12b..8e5a69d 100644 (file)
@@ -2,6 +2,8 @@
 
 set -e
 
+dpkg-maintscript-helper rm_conffile /etc/cron.d/dsa-nagios-checks 110 dsa-nagios-checks -- "$@"
+
 rm -f /var/cache/dsa/nagios/weak-ssh-keys
 
 #DEBHELPER#
index 272a7cc..ae50c70 100644 (file)
@@ -5,6 +5,8 @@
 
 set -e
 
+dpkg-maintscript-helper rm_conffile /etc/cron.d/dsa-nagios-checks 110 dsa-nagios-checks -- "$@"
+
 case "$1" in
     purge)
        rm -f /var/cache/dsa/nagios/weak-ssh-keys
diff --git a/dsa-nagios-checks/debian/preinst b/dsa-nagios-checks/debian/preinst
new file mode 100644 (file)
index 0000000..3839564
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile /etc/cron.d/dsa-nagios-checks 110 dsa-nagios-checks -- "$@"
+
+#DEBHELPER#
+
+exit 0