Package: snapper
Version: 0.2.4-1
Severity: normal

I have dpkg --remove'd snapper, so config files (including cron specs) remained.
which now leads to

Subject: Cron <root@smaug>    cd / && run-parts --report /etc/cron.hourly
/etc/cron.hourly/snapper:
/etc/cron.hourly/snapper: line 29: snapper: command not found
/etc/cron.hourly/snapper: line 29: snapper: command not found

it would be nice if it would just check if snapper is available and if not exit
quetly (which snapper >/dev/null || exit 0 or alike).  Such constructs are 
common:

/etc/cron.daily# grep '\[ -x.*exit' *
bsdmainutils:[ -x /usr/sbin/sendmail ] || exit 0
debsums:[ -x $debsums ] || exit 0
mdadm:[ -x $MDADM ] || exit 0 # package may be removed but not purged
mlocate:[ -x /usr/bin/updatedb.mlocate ] || exit 0


-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (502, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to