mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02:00
Preliminary fix for #2386
This commit is contained in:
+12
-6
@@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user