[packages/logrotate] allow logrotate cron script to take arguments, may be useful for debugging

glen glen at pld-linux.org
Sun Sep 15 04:02:05 CEST 2013


commit 9cec19a57800d0ef693e441862de25b1a50fd80a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 15 05:01:27 2013 +0300

    allow logrotate cron script to take arguments, may be useful for debugging

 logrotate.cron | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/logrotate.cron b/logrotate.cron
index d80accd..daf244f 100755
--- a/logrotate.cron
+++ b/logrotate.cron
@@ -9,7 +9,7 @@ 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
+/usr/sbin/logrotate $ARG /etc/logrotate.conf "$@"
 EXITVALUE=$?
 if [ $EXITVALUE != 0 ]; then
 	/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/logrotate.git/commitdiff/9cec19a57800d0ef693e441862de25b1a50fd80a



More information about the pld-cvs-commit mailing list