mirror of
https://abf.rosa.ru/djam/docker.git
synced 2025-02-23 17:42:47 +00:00
11 lines
274 B
Bash
Executable file
11 lines
274 B
Bash
Executable file
#!/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
|