Blame SOURCES/docker-latest-logrotate.sh

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