diff --git a/nginx/renew-certs.sh b/nginx/renew-certs.sh index 16a9ada..fac2db1 100644 --- a/nginx/renew-certs.sh +++ b/nginx/renew-certs.sh @@ -3,12 +3,6 @@ # Run Certbot to obtain or renew certificates certbot certonly --non-interactive --agree-tos --email lorena.hendrix@sintef.no --webroot -w /usr/share/nginx/html -d app.batterymodel.com -# Verify if certificates have been obtained -if [ -f /etc/letsencrypt/live/app.batterymodel.com/fullchain.pem ]; then - echo "Certificates have been obtained successfully." -else - echo "Failed to obtain certificates." - exit 1 -fi + # Reload Nginx configuration to apply new certificates nginx -s reload \ No newline at end of file