aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog3
-rwxr-xr-xdebian/sitesummary.cron.daily4
2 files changed, 6 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 9e8b67b..628aca5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,9 @@ sitesummary (0.0.56~svn61675) UNRELEASED; urgency=low
* Continue development. _To_ upload the non-svn version, merge all
previous *~svn* versions.
+ * Make sure to not replace the existing generated nagios config with
+ a empty file if no entries have been submitted.
+
-- Petter Reinholdtsen <pere@debian.org> Tue, 19 Jan 2010 19:24:13 +0100
sitesummary (0.0.56~svn61674) lenny; urgency=low
diff --git a/debian/sitesummary.cron.daily b/debian/sitesummary.cron.daily
index 8ed0f01..ae74ba3 100755
--- a/debian/sitesummary.cron.daily
+++ b/debian/sitesummary.cron.daily
@@ -85,7 +85,9 @@ generate_nagios_config() {
true
) > $NAGIOSDIR/nagios-generated.cfg.new && \
chmod a+r $NAGIOSDIR/nagios-generated.cfg.new
- if cmp -s $NAGIOSDIR/nagios-generated.cfg.new $NAGIOSDIR/nagios-generated.cfg
+ if [ ! -s $NAGIOSDIR/nagios-generated.cfg.new ] || \
+ cmp -s $NAGIOSDIR/nagios-generated.cfg.new \
+ $NAGIOSDIR/nagios-generated.cfg
then
rm $NAGIOSDIR/nagios-generated.cfg.new
false