Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > bb1298a8a4ebe5bf9d0d4088ca261898 > files > 1

docker-logrotate-18.09.3-2.mga7.i586.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