aboutsummaryrefslogtreecommitdiffstats
path: root/debian/sitesummary.cron.daily
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sitesummary.cron.daily')
-rwxr-xr-xdebian/sitesummary.cron.daily4
1 files changed, 3 insertions, 1 deletions
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