summaryrefslogtreecommitdiffstats
path: root/source/a/logrotate/logrotate.cron
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/logrotate/logrotate.cron')
-rw-r--r--source/a/logrotate/logrotate.cron4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/a/logrotate/logrotate.cron b/source/a/logrotate/logrotate.cron
index f91b3adda..acdf65c2d 100644
--- a/source/a/logrotate/logrotate.cron
+++ b/source/a/logrotate/logrotate.cron
@@ -1,3 +1,3 @@
#!/bin/sh
-/usr/sbin/logrotate /etc/logrotate.conf
-[ $? != 0 ] && /usr/bin/logger -t logrotate "ALERT - exited abnormally."
+/usr/sbin/logrotate /etc/logrotate.conf \
+ || { /usr/bin/logger -t logrotate "ALERT - exited abnormally." && false ; }