Skip to content

Commit

Permalink
Update start.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Mar 24, 2024
1 parent e1d6c02 commit 5c2d918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
openssl req -nodes -new -x509 -subj '/CN=*' -sha256 -keyout /etc/privkey.pem -out /etc/fullchain.pem -days 365000 > /dev/null 2>&1
cat /etc/fullchain.pem /etc/privkey.pem | tee /etc/cert.pem > /dev/null 2>&1
openssl req -nodes -new -x509 -subj '/CN=*' -sha256 -keyout /tmp/privkey.pem -out /tmp/fullchain.pem -days 365000 > /dev/null 2>&1
cat /tmp/fullchain.pem /tmp/privkey.pem | tee /tmp/cert.pem > /dev/null 2>&1
if [ "$NOPOST" = "1" ]; then
haproxy -f /etc/haproxy/haproxy-no-post.cfg -W -db
else
Expand Down

0 comments on commit 5c2d918

Please sign in to comment.