Skip to content

Commit

Permalink
Tweak sed commands in certbot setup (digitalocean#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 authored Mar 31, 2021
1 parent 7a0b693 commit 8cd4adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nginxconfig/templates/setup_sections/certbot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ THE SOFTWARE.
<br />
</p>
<BashPrism :key="sitesAvailable"
:cmd="`sed -i -r 's/(listen .*443)/\\1;#/g; s/(ssl_(certificate|certificate_key|trusted_certificate) )/#;#\\1/g' ${sitesAvailable}`"
:cmd="`sed -i -r 's/(listen .*443)/\\1; #/g; s/(ssl_(certificate|certificate_key|trusted_certificate) )/#;#\\1/g; s/(server \\{)/\\1\\n ssl off;/g' ${sitesAvailable}`"
@copied="codeCopiedEvent('Disable ssl directives')"
></BashPrism>
</li>
Expand Down Expand Up @@ -65,7 +65,7 @@ THE SOFTWARE.
<br />
</p>
<BashPrism :key="sitesAvailable"
:cmd="`sed -i -r 's/#?;#//g' ${sitesAvailable}`"
:cmd="`sed -i -r -z 's/#?; ?#//g; s/(server \\{)\\n ssl off;/\\1/g' ${sitesAvailable}`"
@copied="codeCopiedEvent('Enable ssl directives')"
></BashPrism>
</li>
Expand Down

0 comments on commit 8cd4adb

Please sign in to comment.