(20241010) With some shell scripts.

This commit is contained in:
2024-10-10 12:06:13 +05:30
parent e858118467
commit 4445bceac0
11 changed files with 127 additions and 5 deletions
+6 -2
View File
@@ -273,8 +273,12 @@ async def change_maintenance(action):
# Enable or disable debugging only if the password matches:
action = action.lower()
if action == "enable": current_app.is_under_maintenance = True
elif action == "disable": current_app.is_under_maintenance = False
if action == "enable":
current_app.is_under_maintenance = True
os.environ["IS_UNDER_MAINTENANCE"] = "True"
elif action == "disable":
current_app.is_under_maintenance = False
os.environ["IS_UNDER_MAINTENANCE"] = "False"
return "ok"