From 78b10da3fc88c5ddf46b68d3dd3ac9b62fdf2cb6 Mon Sep 17 00:00:00 2001
From: CentOS Sources <bugs@centos.org>
Date: Thu, 30 Nov 2017 18:48:18 +0000
Subject: [PATCH] debrand docker-1.12.6-68.gitec8512b.el7

---
 SOURCES/docker-logrotate.sh |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/SOURCES/docker-logrotate.sh b/SOURCES/docker-logrotate.sh
new file mode 100644
index 0000000..f6fc50c
--- /dev/null
+++ b/SOURCES/docker-logrotate.sh
@@ -0,0 +1,11 @@
+#!/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

--
Gitblit v1.8.0