mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Try to renew certs before trying to deploy them
This commit is contained in:
parent
a96a7e2641
commit
c54f154ea6
1 changed files with 5 additions and 5 deletions
|
|
@ -166,11 +166,6 @@ def main(config=None, args=sys.argv[1:]):
|
|||
# user about the existence of an invalid or corrupt renewal
|
||||
# config rather than simply ignoring it.
|
||||
continue
|
||||
if cert.should_autodeploy():
|
||||
cert.update_all_links_to(cert.latest_common_version())
|
||||
# TODO: restart web server (invoke IInstaller.restart() method)
|
||||
notify.notify("Autodeployed a cert!!!", "root", "It worked!")
|
||||
# TODO: explain what happened
|
||||
if cert.should_autorenew():
|
||||
# Note: not cert.current_version() because the basis for
|
||||
# the renewal is the latest version, even if it hasn't been
|
||||
|
|
@ -179,3 +174,8 @@ def main(config=None, args=sys.argv[1:]):
|
|||
renew(cert, old_version)
|
||||
notify.notify("Autorenewed a cert!!!", "root", "It worked!")
|
||||
# TODO: explain what happened
|
||||
if cert.should_autodeploy():
|
||||
cert.update_all_links_to(cert.latest_common_version())
|
||||
# TODO: restart web server (invoke IInstaller.restart() method)
|
||||
notify.notify("Autodeployed a cert!!!", "root", "It worked!")
|
||||
# TODO: explain what happened
|
||||
|
|
|
|||
Loading…
Reference in a new issue