878b00013b
OpenStack 'zed' requires Python 3.8+ so RHEL 8 family has to go. This changeset moves to CentOS Stream 9 while move to RockyLinux 9 is planned as final solution. CI moved to CentOS Stream 9 nodes. Depends-on: https://review.opendev.org/c/openstack/kolla-ansible/+/839715 Change-Id: I113b9984294cf8663d3fc0c8840320e1d40ea731
19 lines
377 B
Bash
Executable File
19 lines
377 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# skip in favour of systemd timer
|
|
if [ -d /run/systemd/system ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# this cronjob persists removals (but not purges)
|
|
if [ ! -x /usr/sbin/logrotate ]; then
|
|
exit 0
|
|
fi
|
|
|
|
/usr/sbin/logrotate /etc/logrotate.conf
|
|
EXITVALUE=$?
|
|
if [ $EXITVALUE != 0 ]; then
|
|
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
|
|
fi
|
|
exit $EXITVALUE
|