Skip to content

Commit

Permalink
Make the paragraph make sense if you're using haproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ohemorange committed Jun 1, 2021
1 parent 9347516 commit aaef367
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions _scripts/instruction-widget/get-started.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = function(context) {
context.imperative = "you should probably"
template = "haproxy";
context.certonly = true;
context.haproxy = true;
}

plesk_getting_started = function() {
Expand Down
10 changes: 10 additions & 0 deletions _scripts/instruction-widget/templates/getting-started/renewal.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@
{{/cron_included}}

{{#certonly}}
{{#haproxy}}
<p>
Next, you'll want to add <code>pre</code> and <code>post</code> hooks to stop and start your
webserver automatically. Run the following commands to create the hook files in the appropriate
directory:
</p>
{{/haproxy}}
{{^haproxy}}
<p>
If you needed to stop your webserver to run Certbot, you'll want to
add <code>pre</code> and <code>post</code> 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:
</p>
{{/haproxy}}


<pre class="no-before"><ol><li>sudo sh -c 'printf "#!/bin/sh\nservice haproxy stop\n" > /etc/letsencrypt/renewal-hooks/pre/haproxy.sh'</li>
<li>sudo sh -c 'printf "#!/bin/sh\nservice haproxy start\n" > /etc/letsencrypt/renewal-hooks/post/haproxy.sh'</li>
Expand Down

0 comments on commit aaef367

Please sign in to comment.