aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-01-07 20:59:01 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-01-07 20:59:01 +0000
commit75d9a94cafa546a5de2a9f4ee25352bb95395c5e (patch)
treedf7a95c18ea1ce32220784fb2fc26ed25e7ff70a
parent988c95d4391332888fce635a192216178608a669 (diff)
downloadsitesummary-75d9a94cafa546a5de2a9f4ee25352bb95395c5e.tar.gz
sitesummary-75d9a94cafa546a5de2a9f4ee25352bb95395c5e.tar.bz2
sitesummary-75d9a94cafa546a5de2a9f4ee25352bb95395c5e.tar.xz
Quiet down first invocation of the cron job.
-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