Compare commits
No commits in common. "741eed066cede98f12d3ab6c9f516f45e7e5ed39" and "f14bdcb7aa32217dab84ac788d338a86c1a07961" have entirely different histories.
741eed066c
...
f14bdcb7aa
6
main.py
6
main.py
@ -34,11 +34,9 @@ def update_host(host: str) -> bool:
|
|||||||
if not container_name:
|
if not container_name:
|
||||||
print("Not correct node")
|
print("Not correct node")
|
||||||
return False
|
return False
|
||||||
|
print(f"Container name: {container_name}")
|
||||||
|
|
||||||
gen_command = f"docker exec -it {container_name} certbot --nginx --email emmtvv@gmail.com --agree-tos -d \"{host}\""
|
gen_cert = call(f"docker exec -it {container_name} certbot --nginx --email emmtvv@gmail.com --agree-tos -d \"{host}\"")
|
||||||
print(gen_command)
|
|
||||||
|
|
||||||
gen_cert = call(gen_command)
|
|
||||||
if gen_cert.code != 0:
|
if gen_cert.code != 0:
|
||||||
print(f"failed generating certificate: {gen_cert.err}")
|
print(f"failed generating certificate: {gen_cert.err}")
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user