diff --git a/drydocker/stick/build.sh b/drydocker/stick/build.sh index 868bb41..dec496b 100755 --- a/drydocker/stick/build.sh +++ b/drydocker/stick/build.sh @@ -1,35 +1,10 @@ #!/bin/bash md51=$(md5sum ${TMPDIR}/stick.git/drydocker.sh | awk '{print $1}') md52=$(md5sum /usr/local/bin/drydocker | awk '{print $1}') if [ "${md51}" != "${md52}" ]; then cp -f ${TMPDIR}/stick.git/drydocker.sh /usr/local/bin/drydocker chmod 755 /usr/local/bin/drydocker echo "Refreshed /usr/local/bin/drydocker" - -# Assume this is the only thing needing any doing. -else - if [ ! -d "${TMPDIR}/docker.git" ]; then - git clone https://git.kolab.org/diffusion/DO/docker.git ${TMPDIR}/docker.git - else - pushd ${TMPDIR}/docker.git - git remote set-url origin https://git.kolab.org/diffusion/DO/docker.git - git fetch origin - git reset --hard origin/master - git clean -d -f -x - popd - fi - - if [ ! -d "${TMPDIR}/docker.git" ]; then - git clone https://git.kolab.org/diffusion/DO/docker.git ${TMPDIR}/docker.git - else - pushd ${TMPDIR}/docker.git - git remote set-url origin https://git.kolab.org/diffusion/DO/docker.git - git fetch origin - git reset --hard origin/master - git clean -d -f -x - fi - - ${TMPDIR}/stick.git/drydocker/docker/build.sh fi