Skip to content

Commit

Permalink
Fix Migration Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
VGR6479 committed Nov 21, 2024
1 parent af2d697 commit 0c36892
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions gerobug_dashboard/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then
exit 1
fi

# Creating Superuser if not exists
# Creating Superuser
echo "[LOG] Creating Superuser "geromin""
if python manage.py shell -c "from django.contrib.auth.models import User; exit(User.objects.filter(username='geromin').exists())"; then
echo "[LOG] Superuser 'geromin' already exists. Skipping creation."
else
python manage.py createsuperuser --noinput --username "geromin" --email "geromin@localhost"
fi
python manage.py createsuperuser --noinput --username "geromin" --email "geromin@localhost"
echo '[LOG] "geromin" Password --> gerobug_dashboard/secrets/gerobug_secret.env'

# Collecting static files
Expand Down

0 comments on commit 0c36892

Please sign in to comment.