view utils/docker-entrypoint.sh @ 64:7c5992231aed

fix mode
author Dave smith <smith@nwoca.org>
date Fri, 11 Mar 2016 11:42:22 -0500
parents 334d65dac778
children 541766977a11
line wrap: on
line source
#!/bin/bash
set -e

if [ "$1" = 'update' ]; then
  cd $SSDT_HOME
  if [ ! -d ".hg" ]; then
	  echo "cloning repository $SSDT_DOCKER  to $SSDT_HOME"
	  mkdir -p $SSDT_HOME
      hg init
  fi
  echo "pulling updates"
  hg pull -y $SSDT_DOCKER
  hg revert -a
  hg update default

else

  exec "$@"

fi