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
78f495
    DOCKERBINARY=/usr/bin/docker-latest
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