Blame SOURCES/docker-latest-logrotate.sh

a4e823
#!/bin/sh
a4e823
a4e823
LOGROTATE=true
a4e823
[ -f /etc/sysconfig/docker-latest ] && source /etc/sysconfig/docker-latest
a4e823
a4e823
if [ $LOGROTATE == true ]; then
a4e823
    for id in $(docker-latest ps -q); do
a4e823
        exec $(docker-latest exec $id logrotate -s /var/log/logstatus /etc/logrotate.conf > /dev/null 2>&1)
a4e823
    done
a4e823
fi
a4e823
exit 0