mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
call .restart() on installer after renew if possible
This commit is contained in:
@@ -704,6 +704,12 @@ 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:
|
||||||
|
# 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)
|
_suggest_donation_if_appropriate(config)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user