Skip to content

Commit

Permalink
fix: Convert Line Endings from CRLF to LF
Browse files Browse the repository at this point in the history
  • Loading branch information
Fer-Bar committed Apr 12, 2024
1 parent 14b1d59 commit e856cfe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/bin/sh
#!/bin/bash

python manage.py migrate

echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', '[email protected]', 'password_secret')" | python manage.py shell
echo "
from django.contrib.auth import get_user_model
User = get_user_model()
if not User.objects.filter(username='admin').exists():
User.objects.create_superuser('admin', '[email protected]', 'password_secret')
" | python manage.py shell

python manage.py collectstatic --no-input

Expand Down

0 comments on commit e856cfe

Please sign in to comment.