feat: status page + maintenance
This commit is contained in:
parent
b0a88b1916
commit
1af0e1f834
@ -4,9 +4,10 @@ import docker
|
|||||||
client = docker.from_env()
|
client = docker.from_env()
|
||||||
for container in client.containers.list():
|
for container in client.containers.list():
|
||||||
if container.name == "thsf":
|
if container.name == "thsf":
|
||||||
|
print("Content-type: text/html\n\n")
|
||||||
print("[+] Rebooting container<br>")
|
print("[+] Rebooting container<br>")
|
||||||
print(" '-> Stopping container<br>")
|
print(" '-> Stopping container<br>")
|
||||||
container.stop()
|
container.stop()
|
||||||
print(" '-> Starting container<br>")
|
print(" '-> Starting container<br>")
|
||||||
container.start()
|
container.start()
|
||||||
print("[\o/] Container restarted<br>")
|
print("[+] Container restarted<br>")
|
||||||
|
Loading…
Reference in New Issue
Block a user