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