(20241010) With some shell scripts.
This commit is contained in:
+6
-2
@@ -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"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user