Blame SOURCES/dockerd-common.sh

d03ac3
#!/bin/sh
d03ac3
. /etc/sysconfig/docker
d03ac3
[ -e "${DOCKERDBINARY}" ] || DOCKERDBINARY=/usr/bin/dockerd-current
d03ac3
if [ ! -f /usr/bin/dockerd-current ]; then
d03ac3
    if [ ! -f /usr/bin/dockerd-latest ]; then
d03ac3
        echo "You don't have either docker or \
d03ac3
docker-latest installed. Please install either one and retry."
d03ac3
        exit
d03ac3
    else
d03ac3
        DOCKERDBINARY=/usr/bin/dockerd-latest
d03ac3
    fi
d03ac3
fi
d03ac3
if [[ ${DOCKERDBINARY} != "/usr/bin/dockerd-current" && ${DOCKERDBINARY} != "/usr/bin/dockerd-latest" ]]; then
d03ac3
    echo "DOCKERDBINARY has been set to an invalid value:" $DOCKERDBINARY
d03ac3
    echo ""
d03ac3
    echo "Please set DOCKERDBINARY to /usr/bin/dockerd-current or /usr/bin/dockerd-latest
d03ac3
by editing /etc/sysconfig/docker"
d03ac3
else
d03ac3
    exec ${DOCKERDBINARY} "$@"
d03ac3
fi