Blame SOURCES/docker-containerd-common.sh

cc6bf7
#!/bin/sh
cc6bf7
. /etc/sysconfig/docker
cc6bf7
[ -e "${DOCKER_CONTAINERD_BINARY}" ] || DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-current
cc6bf7
if [ ! -f /usr/bin/docker-containerd-current ]; then
cc6bf7
    DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-latest
cc6bf7
fi
cc6bf7
if [[ ${DOCKER_CONTAINERD_BINARY} != "/usr/bin/docker-containerd-current" && ${DOCKER_CONTAINERD_BINARY} != /usr/bin/docker-containerd-latest ]]; then
cc6bf7
    echo "DOCKER_CONTAINERD_BINARY has been set to an invalid value:" $DOCKER_CONTAINERD_BINARY
cc6bf7
    echo ""
cc6bf7
    echo "Please set DOCKER_CONTAINERD_BINARY to /usr/bin/docker-containerd-current or /usr/bin/docker-containerd-latest
cc6bf7
by editing /etc/sysconfig/docker"
cc6bf7
else
cc6bf7
    exec ${DOCKER_CONTAINERD_BINARY} "$@"
cc6bf7
fi