Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > 9b07bfa230c7c1bf1947ee3f182f2e7d > files > 1

docker-io-logrotate-1.5.0-1.fc20.x86_64.rpm

#!/bin/sh

LOGROTATE=true
[ -f /etc/sysconfig/docker ] && source /etc/sysconfig/docker

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