From 6d5926ef29f628b5f8db59efd2b75e2b5258ee72 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Tue, 21 Dec 2021 16:06:34 +0100 Subject: [PATCH] prettify --- webmails/roundcube/start.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webmails/roundcube/start.py b/webmails/roundcube/start.py index db9e5ccd..217a24e9 100755 --- a/webmails/roundcube/start.py +++ b/webmails/roundcube/start.py @@ -63,8 +63,7 @@ context["PLUGINS"] = ",".join(f"'{p}'" for p in plugins) context["INCLUDES"] = sorted(inc for inc in os.listdir("/overrides") if inc.endswith(".inc")) if os.path.isdir("/overrides") else [] # calculate variables for config file -env["SESSION_TIMEOUT_MINUTES"] = str(int(env.get("SESSION_TIMEOUT", "3600")) // 60 ) if int(env.get("SESSION_TIMEOUT", "3600")) >= 60 else "1" -context.update(env) +context["SESSION_TIMEOUT_MINUTES"] = max(int(env.get("SESSION_TIMEOUT", "3600")) // 60, 1) # create config files conf.jinja("/php.ini", context, "/usr/local/etc/php/conf.d/roundcube.ini")