From c3b0e26fa94c12a4a5ac4ed435433d5649faf7c8 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Fri, 2 Oct 2015 13:02:12 +0000 Subject: [PATCH] Fixes on deployment --- scripts/containers/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/containers/deploy.sh b/scripts/containers/deploy.sh index 5b372131..412187e5 100644 --- a/scripts/containers/deploy.sh +++ b/scripts/containers/deploy.sh @@ -120,7 +120,7 @@ function main () { surun "python3 -W ignore manage.py migrate $noinput" if [[ $noinput == '--noinput' ]]; then # Create orchestra superuser - cat <<- EOF | $PYTHON_BIN $MANAGE shell + cat <<- EOF | surun "python3 -W ignore manage.py shell" from orchestra.contrib.accounts.models import Account if not Account.objects.filter(username="$user").exists(): print('Creating orchestra superuser')