1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

Print stderr when certbot fails

This commit is contained in:
n0izn0iz 2017-08-24 14:06:31 +02:00 committed by GitHub
parent 8d0d8c3910
commit 434a3c017b

View File

@ -63,7 +63,7 @@ def generate_cert():
)
if result.returncode:
print("Error while generating certificates:\n{}".format(
result.stdout.decode("utf8") + result.stdout.decode("utf8")))
result.stdout.decode("utf8") + result.stderr.decode("utf8")))
else:
print("Successfully generated or renewed TLS certificates")
if certbot_install(hostname):