| 1 |
#!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 |
# THIS FILE IS AUTOMATICALLY DISTRIBUTED BY PUPPET. ANY CHANGES WILL BE |
| 3 |
# OVERWRITTEN. |
| 4 |
|
| •5 |
# skip in favour of systemd timer |
| 6 |
if [scip-shell system . . `[`. -d /run/systemd/systemscip-shell filesystem . . `/run/systemd/system`. ]; then |
| 7 |
exit 0 |
| 8 |
fi |
| 9 |
|
| 10 |
# this cronjob persists removals (but not purges) |
| 11 |
if [scip-shell system . . `[`. ! -x /usr/sbin/logrotatescip-shell filesystem . . `/usr/sbin/logrotate`. ]; then |
| 12 |
exit 0 |
| 13 |
fi |
| 14 |
|
| 15 |
/usr/sbin/logrotatescip-shell filesystem . . `/usr/sbin/logrotate`. /etc/logrotate.confscip-shell filesystem . . `/etc/logrotate.conf`. |
| •16 |
EXITVALUE=$? |
| 17 |
if [scip-shell system . . `[`. $EXITVALUE != 0 ]; then |
| 18 |
/usr/bin/loggerscip-shell filesystem . . `/usr/bin/logger`. -t logrotate "ALERT exited abnormally with [$EXITVALUE]" |
| 19 |
fi |
| 20 |
exit $EXITVALUE |