Fixes on deployment

This commit is contained in:
Marc Aymerich 2015-10-02 13:02:12 +00:00
parent 13307adbcd
commit c3b0e26fa9
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ function main () {
surun "python3 -W ignore manage.py migrate $noinput" surun "python3 -W ignore manage.py migrate $noinput"
if [[ $noinput == '--noinput' ]]; then if [[ $noinput == '--noinput' ]]; then
# Create orchestra superuser # 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 from orchestra.contrib.accounts.models import Account
if not Account.objects.filter(username="$user").exists(): if not Account.objects.filter(username="$user").exists():
print('Creating orchestra superuser') print('Creating orchestra superuser')