File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ if [ -z "$SERVERNAME" ]; then
5
5
exit 1
6
6
fi
7
7
8
+ if ! [ -z "$EXTRANAMES" ]; then
9
+ EXTRANAMES="-d $EXTRANAMES"
10
+ fi
11
+
8
12
echo Waiting for Nginx to come up...
9
13
until curl --connect-timeout 1 http://127.0.0.1/; do
10
14
sleep 1s
@@ -14,7 +18,7 @@ echo Nginx has arrived.
14
18
while true; do
15
19
16
20
if certbot certonly --non-interactive --webroot -w /usr/share/nginx/html --agree-tos \
17
- --rsa-key-size 2048 --keep-until-expiring --expand --register-unsafely-without-email -d $SERVERNAME; then
21
+ --rsa-key-size 2048 --keep-until-expiring --expand --register-unsafely-without-email -d $SERVERNAME $EXTRANAMES ; then
18
22
cp /etc/letsencrypt/live/${SERVERNAME:-example.com}/privkey.pem /etc/letsencrypt/privkey-copy.pem
19
23
cp /etc/letsencrypt/live/${SERVERNAME:-example.com}/fullchain.pem /etc/letsencrypt/fullchain-copy.pem
20
24
nginx -s reload
You can’t perform that action at this time.
0 commit comments