diff --git a/_scripts/instruction-widget/get-started.js b/_scripts/instruction-widget/get-started.js index 83add210a..8b2dee14b 100644 --- a/_scripts/instruction-widget/get-started.js +++ b/_scripts/instruction-widget/get-started.js @@ -43,6 +43,8 @@ module.exports = function(context) { context.officially = "officially "; context.imperative = "you should probably" template = "haproxy"; + context.certonly = true; + context.haproxy = true; } plesk_getting_started = function() { diff --git a/_scripts/instruction-widget/templates/getting-started/renewal.html b/_scripts/instruction-widget/templates/getting-started/renewal.html index 351a2cbe6..d97388a46 100644 --- a/_scripts/instruction-widget/templates/getting-started/renewal.html +++ b/_scripts/instruction-widget/templates/getting-started/renewal.html @@ -4,11 +4,7 @@

The Certbot packages on your system come with a cron job or systemd timer that will renew your certificates automatically before they expire. You will not need to run Certbot again, unless you change your - configuration. You can test automatic renewal for your certificates by running this command: -

sudo {{base_command}} renew --dry-run

-

- If that command completes without errors, your certificates will renew automatically in the background. -

+ configuration.

{{/cron_included}} {{^cron_included}} @@ -21,12 +17,22 @@ {{/cron_included}} {{#certonly}} + {{#haproxy}} +

+ Next, you'll want to add pre and post hooks to stop and start your + webserver automatically. Run the following commands to create the hook files in the appropriate + directory: +

+ {{/haproxy}} + {{^haproxy}}

If you needed to stop your webserver to run Certbot, you'll want to add pre and post hooks to stop and start your webserver automatically. For example, if your webserver is HAProxy, run the following commands to create the hook files in the appropriate directory:

+ {{/haproxy}} +
  1. sudo sh -c 'printf "#!/bin/sh\nservice haproxy stop\n" > /etc/letsencrypt/renewal-hooks/pre/haproxy.sh'
  2. sudo sh -c 'printf "#!/bin/sh\nservice haproxy start\n" > /etc/letsencrypt/renewal-hooks/post/haproxy.sh'
  3. @@ -40,6 +46,12 @@

    {{/certonly}} +

    You can test automatic renewal for your certificates by running this command: +

    sudo {{base_command}} renew --dry-run

    +

    + If that command completes without errors, your certificates will renew automatically in the background. +

    +