diff options
-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 |