Compare commits
2 Commits
ded08985b5
...
1ad823a301
Author | SHA1 | Date | |
---|---|---|---|
1ad823a301 | |||
![]() |
81db99d44d |
2
main.py
2
main.py
@ -41,6 +41,8 @@ def update_host(host: str) -> bool:
|
|||||||
gen_cert = call(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}")
|
||||||
|
print("Here is the log")
|
||||||
|
print(call(f"docker exec {container_name} cat /var/log/letsencrypt/letsencrypt.log").out)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
fullchain_command = call(f"docker exec {container_name} cat /etc/letsencrypt/live/{host}/fullchain.pem")
|
fullchain_command = call(f"docker exec {container_name} cat /etc/letsencrypt/live/{host}/fullchain.pem")
|
||||||
|
Loading…
Reference in New Issue
Block a user