Preliminary fix for #2386

This commit is contained in:
Seth Schoen
2016-02-06 12:14:42 -08:00
parent f70605f5bc
commit 8d8a95800c
+12 -6
View File
@@ -704,12 +704,18 @@ def obtain_cert(config, plugins, lineage=None):
if config.dry_run: if config.dry_run:
_report_successful_dry_run() _report_successful_dry_run()
elif config.verb == "renew" and installer is not None: elif config.verb == "renew":
# In case of a renewal, reload server to pick up new certificate. if installer is None:
# In principle we could have a configuration option to inhibit this # Tell the user that the server was not restarted.
# from happening. print("new certificate deployed without restart, fullchain",
installer.restart() lineage.fullchain)
print("reloaded") else:
# 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("new certificate deployed with restart of plugin",
config.installer, "fullchain is", lineage.fullchain)
_suggest_donation_if_appropriate(config) _suggest_donation_if_appropriate(config)