comparison utils/docker-entrypoint.sh @ 14:5643072a1af9

DEP-7: formalize ssdt-utils image. add template preview usas compose file
author smith@nwoca.org
date Sun, 27 Dec 2015 19:24:12 +0000
parents
children 334d65dac778
comparison
equal deleted inserted replaced
13:82b5ed864aee 14:5643072a1af9
1 #!/bin/bash
2 set -e
3
4 if [ "$1" = 'update' ]; then
5 cd $SSDT_HOME
6 if [ ! -d ".hg" ]; then
7 echo "cloning repository $SSDT_DOCKER to $SSDT_HOME"
8 mkdir -p $SSDT_HOME
9 hg init
10 fi
11 echo "pulling updates"
12 hg pull -y $SSDT_DOCKER
13 hg update default
14
15 else
16
17 exec "$@"
18
19 fi