Compare commits

..

No commits in common. "741eed066cede98f12d3ab6c9f516f45e7e5ed39" and "f14bdcb7aa32217dab84ac788d338a86c1a07961" have entirely different histories.

View File

@ -34,11 +34,9 @@ def update_host(host: str) -> bool:
if not container_name:
print("Not correct node")
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}\""
print(gen_command)
gen_cert = call(gen_command)
gen_cert = call(f"docker exec -it {container_name} certbot --nginx --email emmtvv@gmail.com --agree-tos -d \"{host}\"")
if gen_cert.code != 0:
print(f"failed generating certificate: {gen_cert.err}")
return False