feat: status page + maintenance

This commit is contained in:
mco-system 2023-05-27 19:02:16 +11:00
parent b0a88b1916
commit 1af0e1f834
1 changed files with 2 additions and 1 deletions

View File

@ -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<br>")
print(" '-> Stopping container<br>")
container.stop()
print(" '-> Starting container<br>")
container.start()
print("[\o/] Container restarted<br>")
print("[+] Container restarted<br>")