Package: release.debian.org Severity: normal Tags: stretch User: release.debian....@packages.debian.org Usertags: pu
Can we backport the changes from unstable that silence the cronjobs after package removal? #850776 Andreas
diff -Nru zfs-auto-snapshot-1.2.1/debian/changelog zfs-auto-snapshot-1.2.1/debian/changelog --- zfs-auto-snapshot-1.2.1/debian/changelog 2016-11-06 11:38:36.000000000 +0100 +++ zfs-auto-snapshot-1.2.1/debian/changelog 2018-12-08 00:45:54.000000000 +0100 @@ -1,3 +1,10 @@ +zfs-auto-snapshot (1.2.1-1+deb9u1) stretch; urgency=medium + + * Backported from 1.2.4: + - Make cronjobs exit silently after package removal. (Closes: #850776) + + -- Andreas Beckmann <a...@debian.org> Sat, 08 Dec 2018 00:45:54 +0100 + zfs-auto-snapshot (1.2.1-1) unstable; urgency=medium * Initial release (Closes: #720657) diff -Nru zfs-auto-snapshot-1.2.1/debian/patches/crontabs.patch zfs-auto-snapshot-1.2.1/debian/patches/crontabs.patch --- zfs-auto-snapshot-1.2.1/debian/patches/crontabs.patch 1970-01-01 01:00:00.000000000 +0100 +++ zfs-auto-snapshot-1.2.1/debian/patches/crontabs.patch 2018-12-08 00:33:01.000000000 +0100 @@ -0,0 +1,48 @@ +diff -Nru zfs-auto-snapshot-1.2.1/etc/zfs-auto-snapshot.cron.daily zfs-auto-snapshot-1.2.4/etc/zfs-auto-snapshot.cron.daily +--- zfs-auto-snapshot-1.2.1/etc/zfs-auto-snapshot.cron.daily 2014-10-14 06:19:48.000000000 +0200 ++++ zfs-auto-snapshot-1.2.4/etc/zfs-auto-snapshot.cron.daily 2017-09-18 09:25:02.000000000 +0200 +@@ -1,2 +1,6 @@ + #!/bin/sh ++ ++# Only call zfs-auto-snapshot if it's available ++which zfs-auto-snapshot > /dev/null || exit 0 ++ + exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 // +diff -Nru zfs-auto-snapshot-1.2.1/etc/zfs-auto-snapshot.cron.frequent zfs-auto-snapshot-1.2.4/etc/zfs-auto-snapshot.cron.frequent +--- zfs-auto-snapshot-1.2.1/etc/zfs-auto-snapshot.cron.frequent 2014-10-14 06:19:48.000000000 +0200 ++++ zfs-auto-snapshot-1.2.4/etc/zfs-auto-snapshot.cron.frequent 2017-09-18 09:25:02.000000000 +0200 +@@ -1,3 +1,3 @@ + PATH="/usr/bin:/bin:/usr/sbin:/sbin" + +-*/15 * * * * root zfs-auto-snapshot -q -g --label=frequent --keep=4 // ++*/15 * * * * root which zfs-auto-snapshot > /dev/null || exit 0 ; zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 // +diff -Nru zfs-auto-snapshot-1.2.1/etc/zfs-auto-snapshot.cron.hourly zfs-auto-snapshot-1.2.4/etc/zfs-auto-snapshot.cron.hourly +--- zfs-auto-snapshot-1.2.1/etc/zfs-auto-snapshot.cron.hourly 2014-10-14 06:19:48.000000000 +0200 ++++ zfs-auto-snapshot-1.2.4/etc/zfs-auto-snapshot.cron.hourly 2017-09-18 09:25:02.000000000 +0200 +@@ -1,2 +1,6 @@ + #!/bin/sh ++ ++# Only call zfs-auto-snapshot if it's available ++which zfs-auto-snapshot > /dev/null || exit 0 ++ + exec zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 // +diff -Nru zfs-auto-snapshot-1.2.1/etc/zfs-auto-snapshot.cron.monthly zfs-auto-snapshot-1.2.4/etc/zfs-auto-snapshot.cron.monthly +--- zfs-auto-snapshot-1.2.1/etc/zfs-auto-snapshot.cron.monthly 2014-10-14 06:19:48.000000000 +0200 ++++ zfs-auto-snapshot-1.2.4/etc/zfs-auto-snapshot.cron.monthly 2017-09-18 09:25:02.000000000 +0200 +@@ -1,2 +1,6 @@ + #!/bin/sh ++ ++# Only call zfs-auto-snapshot if it's available ++which zfs-auto-snapshot > /dev/null || exit 0 ++ + exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 // +diff -Nru zfs-auto-snapshot-1.2.1/etc/zfs-auto-snapshot.cron.weekly zfs-auto-snapshot-1.2.4/etc/zfs-auto-snapshot.cron.weekly +--- zfs-auto-snapshot-1.2.1/etc/zfs-auto-snapshot.cron.weekly 2014-10-14 06:19:48.000000000 +0200 ++++ zfs-auto-snapshot-1.2.4/etc/zfs-auto-snapshot.cron.weekly 2017-09-18 09:25:02.000000000 +0200 +@@ -1,2 +1,6 @@ + #!/bin/sh ++ ++# Only call zfs-auto-snapshot if it's available ++which zfs-auto-snapshot > /dev/null || exit 0 ++ + exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 // diff -Nru zfs-auto-snapshot-1.2.1/debian/patches/series zfs-auto-snapshot-1.2.1/debian/patches/series --- zfs-auto-snapshot-1.2.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ zfs-auto-snapshot-1.2.1/debian/patches/series 2018-12-08 00:45:50.000000000 +0100 @@ -0,0 +1 @@ +crontabs.patch