Commit bd7dd274 authored by Evili del Rio's avatar Evili del Rio

Minor corrections

parent 3a7acbcb
Pipeline #641 passed with stage
in 22 seconds
......@@ -41,7 +41,7 @@ then
fi
## Remove gcc and friends but not the rest
if [[ -n "${FIRST_RUN}" -n "${REQUIRED_PACKAGES}" ]]
if [[ -n "${FIRST_RUN}" && -n "${REQUIRED_PACKAGES}" ]]
then
apk del gcc g++ libc-dev
fi
......@@ -109,8 +109,10 @@ if [[ -n "${FIRST_RUN}" && \
-n "${DJANGO_SUPERUSER_PASSWORD}" ]]
then
# Try Django>=3.0
# Disable shell exit on error
set +e
python manage.py createsuperuser --no-input
if [[ $? -ne 0]]
if [[ $? -ne 0 ]]
then
# Try Django < 3.0
python manage.py shell <<EOF
......@@ -124,6 +126,8 @@ User.objects.create_superuser(
EOF
fi
fi
# Reenable shell exit on error
set -e
#
# Mark NOT_FIRST_RUN for later.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment