From ec4b35673af9f552f2692d152912bf1801f8aa01 Mon Sep 17 00:00:00 2001 From: Ionut Filip Date: Fri, 15 Feb 2019 14:06:48 +0200 Subject: [PATCH] Resolve HOST_REDIS in rspamd --- services/rspamd/start.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/rspamd/start.py b/services/rspamd/start.py index 3febed2b..c98f90f8 100755 --- a/services/rspamd/start.py +++ b/services/rspamd/start.py @@ -10,8 +10,7 @@ log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING")) # Actual startup script os.environ["FRONT_ADDRESS"] = resolve(os.environ.get("FRONT_ADDRESS", "front")) - -if "HOST_REDIS" not in os.environ: os.environ["HOST_REDIS"] = "redis" +os.environ["HOST_REDIS"] = resolve(os.environ.get("HOST_REDIS", "redis")) for rspamd_file in glob.glob("/conf/*"): convert(rspamd_file, os.path.join("/etc/rspamd/local.d", os.path.basename(rspamd_file)))