This commit is contained in:
Egor Matveev 2025-06-01 19:48:06 +03:00
parent 096506b9dd
commit 62a57137d1

View File

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