view utils/docker-entrypoint.sh @ 16:e882fb87199a

DEP-7: add update script. set default restart on services to unless-stopped
author smith@nwoca.org
date Sun, 27 Dec 2015 23:01:13 +0000
parents 5643072a1af9
children 334d65dac778
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 update default

else

  exec "$@"

fi