Mercurial > public > ssdt-docker
view utils/docker-entrypoint.sh @ 44:e5ba33051de7
add scripts and compose file for importing from server
author | Dave smith <smith@nwoca.org> |
---|---|
date | Wed, 27 Jan 2016 17:19:19 -0500 |
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