diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-06 18:40:31 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-06 18:40:31 +0000 |
commit | be7fafe44ab8ef50f4bcd2bdd3ff339796d223e0 (patch) | |
tree | 4bc67ec5ac0322f1f7295cd4095c947759b53d2e | |
parent | cb11f16698c911b855f1954a206f47a3e7aa6c63 (diff) | |
download | sitesummary-be7fafe44ab8ef50f4bcd2bdd3ff339796d223e0.tar.gz sitesummary-be7fafe44ab8ef50f4bcd2bdd3ff339796d223e0.tar.bz2 sitesummary-be7fafe44ab8ef50f4bcd2bdd3ff339796d223e0.tar.xz |
Make sure cron job exit imediately and without an error code if the sitesummary package is removed but not purged (Closes: #563066).
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | debian/sitesummary.cron.daily | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 1f41399..bdadf3f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,8 @@ sitesummary (0.0.51) UNRELASED; urgency=low * Ignore kernel file system type fusectl when generating Nagios checks. * Make sure the generated Nagios host entries uses a template. + * Make sure cron job exit imediately and without an error code if + the sitesummary package is removed but not purged (Closes: #563066). -- Finn-Arne Johansen <finnarne@debian> Wed, 18 Nov 2009 08:21:12 +0100 diff --git a/debian/sitesummary.cron.daily b/debian/sitesummary.cron.daily index b06023a..9f0c5b6 100755 --- a/debian/sitesummary.cron.daily +++ b/debian/sitesummary.cron.daily @@ -14,6 +14,11 @@ MUNINDIR=/var/lib/sitesummary [ -f /etc/sitesummary/collector.cfg ] && . /etc/sitesummary/collector.cfg +# Exit imediately if the package is removed but nor purged +if [ ! -x $nodes ] ; then + exit 0 +fi + # The storage area is not configurable, because too many scripts have # it hardcoded entriesdir=/var/lib/sitesummary/entries |