File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ source venv/bin/activate
12
12
admin_exists=$( python manage.py shell -c " from django.contrib.auth import get_user_model; User = get_user_model(); print(User.objects.filter(email='$OFFLINE_ADMIN ', is_superuser=True).exists())" )
13
13
14
14
# Prompt the user to create the admin if not
15
- if [ " $admin_exists " = " False" && " $OFFLINE_MODE " = " True" ]; then
15
+ if [[ " $admin_exists " = " False" && " $OFFLINE_MODE " = " True" ] ]; then
16
16
echo " Admin user with email $OFFLINE_ADMIN does not exist. Please create one."
17
17
python manage.py createsuperuser --email $OFFLINE_ADMIN
18
18
else
22
22
# Clear cache, compress and run the server
23
23
python3 manage.py clearCache
24
24
python3 manage.py compress
25
- python3 manage.py runserver
25
+ python3 manage.py runserver
You can’t perform that action at this time.
0 commit comments