feat: status page + maintenance
This commit is contained in:
parent
b0a88b1916
commit
1af0e1f834
@ -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>")
|
||||
|
Loading…
Reference in New Issue
Block a user