From 2aa9f46ef4596db02599ff32ea839f8f0742300e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Wed, 4 Oct 2023 16:46:08 +0200 Subject: [PATCH] Fix default values in whitelist job --- src/common/core/whitelist/jobs/whitelist-download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/core/whitelist/jobs/whitelist-download.py b/src/common/core/whitelist/jobs/whitelist-download.py index d1427688b..9dc33d7c7 100755 --- a/src/common/core/whitelist/jobs/whitelist-download.py +++ b/src/common/core/whitelist/jobs/whitelist-download.py @@ -60,11 +60,11 @@ try: # Multisite case if getenv("MULTISITE", "no") == "yes": for first_server in getenv("SERVER_NAME", "").split(" "): - if getenv(f"{first_server}_USE_WHITELIST", getenv("USE_WHITELIST", "no")) == "yes": + if getenv(f"{first_server}_USE_WHITELIST", getenv("USE_WHITELIST", "yes")) == "yes": whitelist_activated = True break # Singlesite case - elif getenv("USE_WHITELIST", "no") == "yes": + elif getenv("USE_WHITELIST", "yes") == "yes": whitelist_activated = True if not whitelist_activated: