Skip to content
Snippets Groups Projects
Commit 343867d3 authored by derneuere's avatar derneuere
Browse files

Only create admin if values are provided

parent c80fd9d8
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,11 @@ python manage.py showmigrations | tee /logs/show_migrate.log
python manage.py migrate | tee /logs/command_migrate.log
python manage.py showmigrations | tee /logs/show_migrate.log
python manage.py clear_cache
python manage.py createadmin -u $ADMIN_USERNAME $ADMIN_EMAIL 2>&1 | tee /logs/command_createadmin.log
if [ -n "$ADMIN_USERNAME" ]
then
python manage.py createadmin -u $ADMIN_USERNAME $ADMIN_EMAIL 2>&1 | tee /logs/command_createadmin.log
fi
echo "Running backend server..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment