Skip to content

Commit

Permalink
removed renew-certs debug line
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenaH84 committed Jun 15, 2024
1 parent 5bac801 commit 666a993
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions nginx/renew-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
# Run Certbot to obtain or renew certificates
certbot certonly --non-interactive --agree-tos --email [email protected] --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

0 comments on commit 666a993

Please sign in to comment.