From 1005f92a1eae7a29467b9735825e047b65759ed6 Mon Sep 17 00:00:00 2001 From: Emilie Date: Wed, 17 May 2017 17:19:23 +0200 Subject: [PATCH] [pull.sh] : add option --restore-db --- pull.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" -- 2.39.5