From: Emilie Date: Wed, 17 May 2017 15:19:23 +0000 (+0200) Subject: [pull.sh] : add option --restore-db X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1005f92a1eae7a29467b9735825e047b65759ed6;p=docker-django-scripts.git [pull.sh] : add option --restore-db --- diff --git a/pull.sh b/pull.sh index 7309930..a9a1c08 100755 --- a/pull.sh +++ b/pull.sh @@ -5,5 +5,8 @@ sudo chown -R $USER var/backup git pull git submodule foreach --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)' git submodule foreach --recursive 'git pull origin $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)' -docker-compose run db /srv/bin/db/restore.sh +if [ "$1" = "--restore-db" ]; + then + docker-compose run db /srv/bin/db/restore.sh +fi docker-compose run app bash -c "cd /srv && bower --allow-root install && gulp build"