Blame SOURCES/docker-common.sh

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