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