From: root Date: Fri, 11 Nov 2016 11:07:22 +0000 (+0100) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=fd5a0df95951a9b29afcb315fd4e73d60bd0ffe3;p=config%2Fuhu1%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- diff --git a/.etckeeper b/.etckeeper index cc86746..079bb90 100755 --- a/.etckeeper +++ b/.etckeeper @@ -804,6 +804,7 @@ maybe chmod 0755 'cron.d' maybe chmod 0644 'cron.d/.keep_sys-process_cronie-0' maybe chmod 0644 'cron.d/sysstat' maybe chmod 0750 'cron.daily' +maybe chmod 0755 'cron.daily/._cfg0000_logrotate' maybe chmod 0644 'cron.daily/.keep_sys-process_cronbase-0' maybe chmod 0755 'cron.daily/00-logwatch' maybe chmod 0755 'cron.daily/etckeeper' diff --git a/cron.daily/._cfg0000_logrotate b/cron.daily/._cfg0000_logrotate new file mode 100755 index 0000000..67ff626 --- /dev/null +++ b/cron.daily/._cfg0000_logrotate @@ -0,0 +1,8 @@ +#!/bin/sh + +/usr/bin/logrotate /etc/logrotate.conf +EXITVALUE=$? +if [ $EXITVALUE != 0 ]; then + /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" +fi +exit 0