From 5007ae5d8e60ba67cfc63aa0f98adf5def559e7a Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 2 Sep 2022 16:52:40 +0900 Subject: [PATCH] Set default value for FLOWER_BASIC_AUTH --- tools/prod-flower.sh | 2 +- tools/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/prod-flower.sh b/tools/prod-flower.sh index 5db436df..2b58056a 100755 --- a/tools/prod-flower.sh +++ b/tools/prod-flower.sh @@ -10,7 +10,7 @@ cd /backend python manage.py wait_for_db echo "Starting flower" - if [[ -n "${FLOWER_BASIC_AUTH}" ]]; then + if [[ -n "${FLOWER_BASIC_AUTH:-}" ]]; then celery --app=config flower --basic_auth="${FLOWER_BASIC_AUTH}" fi ) diff --git a/tools/run.sh b/tools/run.sh index 4e87372a..9f52cd45 100755 --- a/tools/run.sh +++ b/tools/run.sh @@ -44,7 +44,7 @@ celery --app=config worker --loglevel=INFO --concurrency="${CELERY_WORKERS:-1}" celery_pid="$!" echo "Starting flower" -if [[ -n "${FLOWER_BASIC_AUTH}" ]]; then +if [[ -n "${FLOWER_BASIC_AUTH:-}" ]]; then celery --app=config flower --basic_auth="${FLOWER_BASIC_AUTH}" & fi