Skip to content

Commit 2f66e6f

Browse files
Update renew.sh
1 parent f26380a commit 2f66e6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

files/renew.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ fullchain_path="/var/log/letsencrypt/live/${DOMAIN_NAME}/fullchain.pem"
55

66
if [ "$ENABLE_LETSENCRYPT" = True ] && [ "$DOMAIN_NAME" ] && [ "$USER_EMAIL" ]; then
77

8-
certbot renew --force-renewal
8+
certbot certonly -n --webroot --webroot-path /usr/share/nginx/html --no-redirect --agree-tos --email "$USER_EMAIL" -d "$DOMAIN_NAME" --config-dir /var/log/letsencrypt/ --work-dir /var/log/letsencrypt/work --logs-dir /var/log/letsencrypt/log
99
if [ $? -eq 0 ]; then
10-
echo "certbot renew --force-renewal Executed."
10+
echo "certbot certonly -n... Executed."
1111
if [ -f "$fullchain_path" ]; then
1212
nginx -s reload
1313
else
1414
echo "letsencrypt Certificates Not Found!"
1515
fi
1616
else
17-
echo "certbot renew --force-renewal Failed."
17+
echo "certbot certonly -n... Failed."
1818
fi
1919

20-
fi
20+
fi

0 commit comments

Comments
 (0)