Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
SiwatS authored Mar 31, 2022
1 parent d1e1673 commit e9c2d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ unitd --no-daemon --control unix:/var/run/control-unit.sock &
curl -X PUT --data-binary @/software/unit.json --unix-socket /var/run/control-unit.sock http://localhost/config &&

#Request Certificate
certbot certonly --test-cert --webroot --agree-tos -m $EMAIL -n -w /ssl/certbotroot -d $DOMAIN_NAME &&
certbot certonly --webroot --agree-tos -m $EMAIL -n -w /ssl/certbotroot -d $DOMAIN_NAME &&

#Construct and Upload Certificate to NGINX Unit
cat /etc/letsencrypt/live/$DOMAIN_NAME/fullchain.pem > fullcert.pem &&
Expand All @@ -16,4 +16,4 @@ curl -X PUT --data-binary @fullcert.pem --unix-socket /var/run/control-unit.sock
curl -X PUT --data-binary @/software/ssl-listener.json --unix-socket /var/run/control-unit.sock 'http://localhost/config/listeners/*:443' &&

#Idle Forever
tail -f /dev/null
tail -f /dev/null

0 comments on commit e9c2d0e

Please sign in to comment.