]> git.pld-linux.org Git - packages/logrotate.git/blobdiff - logrotate.cron
setup own cronjob instead of fixed cron.daily
[packages/logrotate.git] / logrotate.cron
index 76a7a69bc2b9dc8832d6071a5e499bcc4a8a7a50..d80accdeeb6820a26a4082372c9621f9d0132efc 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/sh
-
 MAILTO=""
 ARG=""
 
@@ -7,6 +6,9 @@ if [ -e /etc/sysconfig/logrotate ]; then
        . /etc/sysconfig/logrotate
 fi
 
+# NOTE: DISABLE_LOGROTATE_CRON is not official option to tune, it's only here to handle migration from < 3.8.6-1
+[ "$DISABLE_LOGROTATE_CRON" = "yes" ] && exit 0
+
 /usr/sbin/logrotate $ARG /etc/logrotate.conf
 EXITVALUE=$?
 if [ $EXITVALUE != 0 ]; then
This page took 0.070676 seconds and 4 git commands to generate.