Skip to content

Commit

Permalink
File creation outside bracket.
Browse files Browse the repository at this point in the history
  • Loading branch information
datenritter authored and antobinary committed Feb 24, 2024
1 parent be6f89f commit 61562d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bbb-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -816,9 +816,10 @@ END
cat > /etc/letsencrypt/renewal-hooks/deploy/haproxy <<HERE
#!/bin/bash -e
{ touch /etc/haproxy/certbundle.pem.new
touch /etc/haproxy/certbundle.pem.new
chmod 0640 /etc/haproxy/certbundle.pem.new
cat /etc/letsencrypt/live/$HOST/fullchain.pem; echo; cat /etc/letsencrypt/live/$HOST/privkey.pem; } > /etc/haproxy/certbundle.pem.new
{ cat /etc/letsencrypt/live/$HOST/fullchain.pem; echo; cat /etc/letsencrypt/live/$HOST/privkey.pem; } > /etc/haproxy/certbundle.pem.new
chown root:haproxy /etc/haproxy/certbundle.pem.new
mv /etc/haproxy/certbundle.pem.new /etc/haproxy/certbundle.pem
systemctl reload haproxy
Expand Down

0 comments on commit 61562d6

Please sign in to comment.