File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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"
55
66if [ " $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
You can’t perform that action at this time.
0 commit comments