From 1af0e1f834c7b749ddbce7df1fb599aee5726cae Mon Sep 17 00:00:00 2001 From: mco-system Date: Sat, 27 May 2023 19:02:16 +1100 Subject: [PATCH] feat: status page + maintenance --- maintenance/reboot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maintenance/reboot.py b/maintenance/reboot.py index 35dcb74..203d280 100755 --- a/maintenance/reboot.py +++ b/maintenance/reboot.py @@ -4,9 +4,10 @@ import docker client = docker.from_env() for container in client.containers.list(): if container.name == "thsf": + print("Content-type: text/html\n\n") print("[+] Rebooting container
") print(" '-> Stopping container
") container.stop() print(" '-> Starting container
") container.start() - print("[\o/] Container restarted
") + print("[+] Container restarted
")