Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 0ec1ec6b740d9d3992d7ca25cd2ff96e > files > 3

docker-18.09.9-1.2.mga7.src.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