Skip to content

Commit

Permalink
Improve Certbot
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerobug Team committed Nov 21, 2024
1 parent d02bf9f commit bbe90d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cron/renew_certbot.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ docker run --rm -p 8888:80 --name certbot \
-v "/etc/letsencrypt:/etc/letsencrypt" \
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
-v "/var/www/letsencrypt:/var/www/letsencrypt" \
certbot/certbot renew --webroot -w /var/www/letsencrypt --quiet --agree-tos
certbot/certbot renew --webroot -w /var/www/letsencrypt --agree-tos

# Reload Nginx to apply new certificates (optional)
# docker exec gerobug_nginx nginx -s reload
Expand All @@ -13,4 +13,4 @@ docker run --rm -p 8888:80 --name certbot \
# echo "0 2 1 * * /path/to/gerobug/cron/renew_certbot.sh >> /gerobug/log/renew_certbot.log 2>&1" | sudo crontab -

# DELETE CRON
# sudo crontab -l | grep -v "/gerobug/cron/renew_certbot.sh" | sudo crontab -
# sudo crontab -l | grep -v "/gerobug/cron/renew_certbot.sh" | sudo crontab -

0 comments on commit bbe90d3

Please sign in to comment.