Sophie

Sophie

distrib > Mageia > 6 > i586 > by-pkgid > a531c4ce77a1f222d12be7fb84a205f1 > files > 1

docker-logrotate-18.06.3-1.2.mga6.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