aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rwxr-xr-xdebian/sitesummary.cron.daily2
2 files changed, 2 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 810af59..925a456 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ sitesummary (0.0.53) UNRELEASED; urgency=low
lower case characters.
* Only reload Nagios in cron job if the generated configuration
changed.
+ * Quiet down first invocation of the cron job.
-- Petter Reinholdtsen <pere@debian.org> Thu, 07 Jan 2010 20:03:00 +0100
diff --git a/debian/sitesummary.cron.daily b/debian/sitesummary.cron.daily
index a6d54f1..e408a7a 100755
--- a/debian/sitesummary.cron.daily
+++ b/debian/sitesummary.cron.daily
@@ -83,7 +83,7 @@ generate_nagios_config() {
true
) > $NAGIOSDIR/nagios-generated.cfg.new && \
chmod a+r $NAGIOSDIR/nagios-generated.cfg.new
- if cmp $NAGIOSDIR/nagios-generated.cfg.new $NAGIOSDIR/nagios-generated.cfg
+ if cmp -s $NAGIOSDIR/nagios-generated.cfg.new $NAGIOSDIR/nagios-generated.cfg
then
rm $NAGIOSDIR/nagios-generated.cfg.new
false