]> git.parisson.com Git - docker-django-scripts.git/commitdiff
[pull.sh] : add option --restore-db
authorEmilie <zawadzki@ircam.fr>
Wed, 17 May 2017 15:19:23 +0000 (17:19 +0200)
committerEmilie <zawadzki@ircam.fr>
Wed, 17 May 2017 15:19:23 +0000 (17:19 +0200)
pull.sh

diff --git a/pull.sh b/pull.sh
index 7309930f1d16eb1be205670fd33c8d8bcf31b8eb..a9a1c0849656b6495ec1962d95fe01246101be93 100755 (executable)
--- 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"