Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
read env var as str
  • Loading branch information
mvogl committed Dec 15, 2017
1 parent bf25293 commit b64ac28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/loaddjango.sh
Expand Up @@ -12,7 +12,7 @@ python manage.py migrate eoa
yes "y" | python manage.py makemigrations
yes "y" | python manage.py migrate
# Create superuser with pwd from env variable
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.filter(email='admin@example.com', is_superuser=True).delete(); User.objects.create_superuser('admin', 'admin@example.com',"$ADMIN_PWD")" | python manage.py shell
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.filter(email='admin@example.com', is_superuser=True).delete(); User.objects.create_superuser('admin', 'admin@example.com','"$ADMIN_PWD"')" | python manage.py shell

# Import Bärnighausen file
python manage.py tei_import -f baernighausen.xml
Expand Down

0 comments on commit b64ac28

Please sign in to comment.