|
|
|
@ -61,7 +61,7 @@ else:
|
|
|
|
|
context["PLUGINS"] = ",".join(f"'{p}'" for p in plugins)
|
|
|
|
|
|
|
|
|
|
# add overrides
|
|
|
|
|
context["INCLUDES"] = sorted(inc for inc in os.listdir("/overrides") if inc.endswith(".inc")) if os.path.isdir("/overrides") else []
|
|
|
|
|
context["INCLUDES"] = sorted(inc for inc in os.listdir("/overrides") if inc.endswith((".inc", ".inc.php"))) if os.path.isdir("/overrides") else []
|
|
|
|
|
|
|
|
|
|
# calculate variables for config file
|
|
|
|
|
context["SESSION_TIMEOUT_MINUTES"] = max(int(env.get("SESSION_TIMEOUT", "3600")) // 60, 1)
|
|
|
|
@ -81,7 +81,7 @@ try:
|
|
|
|
|
except subprocess.CalledProcessError as exc:
|
|
|
|
|
err = exc.stdout.decode()
|
|
|
|
|
if "already exists" in err:
|
|
|
|
|
print("Already initialzed")
|
|
|
|
|
print("Already initialized")
|
|
|
|
|
else:
|
|
|
|
|
print(err)
|
|
|
|
|
exit(3)
|
|
|
|
|