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-containerd-shim-common.sh |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/SOURCES/docker-containerd-shim-common.sh b/SOURCES/docker-containerd-shim-common.sh
new file mode 100644
index 0000000..c0e6ba3
--- /dev/null
+++ b/SOURCES/docker-containerd-shim-common.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+. /etc/sysconfig/docker
+[ -e "${DOCKER_CONTAINERD_SHIM_BINARY}" ] || DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-current
+if [ ! -f /usr/bin/docker-containerd-shim-current ]; then
+    DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-latest
+fi
+if [[ ${DOCKER_CONTAINERD_SHIM_BINARY} != "/usr/bin/docker-containerd-shim-current" && ${DOCKER_CONTAINERD_SHIM_BINARY} != /usr/bin/docker-containerd-shim-latest ]]; then
+    echo "DOCKER_CONTAINERD_SHIM_BINARY has been set to an invalid value:" $DOCKER_CONTAINERD_SHIM_BINARY
+    echo ""
+    echo "Please set DOCKER_CONTAINERD_SHIM_BINARY to /usr/bin/docker-containerd-shim-current or /usr/bin/docker-containerd-shim-latest
+by editing /etc/sysconfig/docker"
+else
+    exec ${DOCKER_CONTAINERD_SHIM_BINARY} "$@"
+fi

--
Gitblit v1.8.0