From fad67abf93bcbb96015eb8c124bbf03af7e0175f Mon Sep 17 00:00:00 2001 From: Moctar Date: Fri, 15 Jan 2021 15:09:46 +0100 Subject: [PATCH] PHRAS-3336 test if PHRASEANET_EXPODE_WORKER is set fallback to default --- docker/phraseanet/worker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/phraseanet/worker/entrypoint.sh b/docker/phraseanet/worker/entrypoint.sh index 2fa3c03a4f..327a22fc6e 100755 --- a/docker/phraseanet/worker/entrypoint.sh +++ b/docker/phraseanet/worker/entrypoint.sh @@ -30,7 +30,7 @@ if [ -f /etc/ImageMagick-$IMAGEMAGICK_POLICY_VERSION/policy.xml ]; then fi rm -rf bin/run-worker.sh -if [ ${PHRASEANET_EXPLODE_WORKER} == "1" ]; then +if [ ! -z "$PHRASEANET_EXPLODE_WORKER" ] && [ ${PHRASEANET_EXPLODE_WORKER} == "1" ]; then for i in `env | grep PHRASEANET_WORKER_ | cut -d'=' -f1` do queue_name="$(echo $i | cut -d'_' -f3)"