Sophie

Sophie

distrib > Mageia > 8 > armv7hl > by-pkgid > 673d950eda382abe1ba0fa2cb1e94b56 > files > 3

docker-20.10.14-3.mga8.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