call .restart() on installer after renew if possible

This commit is contained in:
Seth Schoen
2016-02-05 15:37:50 -08:00
parent 5c31b000b4
commit 21fe41c53b
+6
View File
@@ -704,6 +704,12 @@ def obtain_cert(config, plugins, lineage=None):
if config.dry_run:
_report_successful_dry_run()
elif config.verb == "renew" and installer is not None:
# In case of a renewal, reload server to pick up new certificate.
# In principle we could have a configuration option to inhibit this
# from happening.
installer.restart()
print("reloaded")
_suggest_donation_if_appropriate(config)