File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ fullchain_path="/var/log/letsencrypt/live/${DOMAIN_NAME}/fullchain.pem"
5
5
6
6
if [ " $ENABLE_LETSENCRYPT " = True ] && [ " $DOMAIN_NAME " ] && [ " $USER_EMAIL " ]; then
7
7
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
9
9
if [ $? -eq 0 ]; then
10
- echo " certbot renew --force-renewal Executed."
10
+ echo " certbot certonly -n... Executed."
11
11
if [ -f " $fullchain_path " ]; then
12
12
nginx -s reload
13
13
else
14
14
echo " letsencrypt Certificates Not Found!"
15
15
fi
16
16
else
17
- echo " certbot renew --force-renewal Failed."
17
+ echo " certbot certonly -n... Failed."
18
18
fi
19
19
20
- fi
20
+ fi
You can’t perform that action at this time.
0 commit comments