Automates deployment of containerized applications
CentOS Sources
2017-11-30 78b10da3fc88c5ddf46b68d3dd3ac9b62fdf2cb6
commit | author | age
d03ac3 1 #!/bin/sh
CS 2
3 LOGROTATE=true
4 [ -f /etc/sysconfig/docker ] && source /etc/sysconfig/docker
5
6 if [ $LOGROTATE == true ]; then
7     for id in $(docker ps -q); do
8         exec $(docker exec $id logrotate -s /var/log/logstatus /etc/logrotate.conf > /dev/null 2>&1)
9     done
10 fi
11 exit 0