From ce42242cb0bf95420eb02ab1f9f8a066a407f653 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Tue, 5 May 2015 20:24:29 +0000 Subject: [PATCH] Fixes on deploy.sh --- scripts/container/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/container/deploy.sh b/scripts/container/deploy.sh index fa530fab..334c6e96 100755 --- a/scripts/container/deploy.sh +++ b/scripts/container/deploy.sh @@ -64,8 +64,7 @@ if [[ ! -e $BASE_DIR ]]; then surun "orchestra-admin startproject $PROJECT_NAME" cd - else - echo "$BASE_DIR already existis, doing postupgrade." - $PYTHON_BIN $MANAGE postupgradeorchestra --from $CURRENT_VERSION + echo "$BASE_DIR already existis, doing nothing." fi @@ -86,6 +85,7 @@ if [[ ! $(sudo su postgres -c "psql -lqt" | awk {'print $1'} | grep '^orchestra$ sudo su postgres -c 'psql -c "ALTER USER orchestra CREATEDB;"' fi + # admin_tools needs accounts and does not have migrations run "$PYTHON_BIN $MANAGE migrate --noinput accounts" run "$PYTHON_BIN $MANAGE migrate --noinput"