Merge pull request #5821 from danilobuerger/django-env
Allow preset env variable for django secret
This commit is contained in:
commit
676bda8cc3
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user