diff options
Diffstat (limited to 'install/ishtar-prepare-instance')
-rwxr-xr-x | install/ishtar-prepare-instance | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/install/ishtar-prepare-instance b/install/ishtar-prepare-instance index 4b62ec256..1df266c71 100755 --- a/install/ishtar-prepare-instance +++ b/install/ishtar-prepare-instance @@ -380,7 +380,12 @@ EOF done cecho y " - create superuser" - $PYTHON ./manage.py createsuperuser + + if [ -z "$SUPERUSER_NAME" ]; then + $PYTHON ./manage.py createsuperuser + else + $PYTHON ./manage.py shell -c "from django.contrib.auth.models import User; User.objects.create_superuser('"$SUPERUSER_NAME"', '', '"$SUPERUSER_PASSWORD"')" + fi cecho y " - post install script" cd .. |