Fix default values in whitelist job

This commit is contained in:
Théophile Diot 2023-10-04 16:46:08 +02:00
parent 8f456722e0
commit 2aa9f46ef4
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -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: