Merge pull request #5821 from danilobuerger/django-env

Allow preset env variable for django secret
This commit is contained in:
Finn Stutzenstein 2021-01-26 09:19:48 +01:00 committed by GitHub
commit 676bda8cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
set -e set -e
# Set DJANGO_SECRET_KEY variable # Set DJANGO_SECRET_KEY variable
source /run/secrets/django source /run/secrets/django || true
[[ -n "$DJANGO_SECRET_KEY" ]] || { [[ -n "$DJANGO_SECRET_KEY" ]] || {
echo "ERROR: Django secret key undefined! Cannot continue." echo "ERROR: Django secret key undefined! Cannot continue."
sleep 5 sleep 5

View File

@ -16,7 +16,7 @@ EOF
} }
# Set DJANGO_SECRET_KEY variable # Set DJANGO_SECRET_KEY variable
source /run/secrets/django source /run/secrets/django || true
[[ -n "$DJANGO_SECRET_KEY" ]] || { [[ -n "$DJANGO_SECRET_KEY" ]] || {
echo "ERROR: Django secret key undefined! Cannot continue." echo "ERROR: Django secret key undefined! Cannot continue."
sleep 5 sleep 5