-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |