Skip to content

Commit 3a82804

Browse files
authored
Merge pull request #150 from dcdenu4/task/update-cronjob-script
Update cronjob script
2 parents 76af2f9 + 2fc8b9b commit 3a82804

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/renew-cert.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# renew the certificate. use --dry-run flag for testing.
33
cd /home/ddenu/urban-online-workflow;
44

5-
docker compose run --rm certbot certonly --force-renew --webroot --webroot-path /var/www/certbot/ -d urbanonline.naturalcapitalproject.org;
6-
75
date >> /home/ddenu/cronjoblogs.txt;
6+
7+
# --force-renew : force cert to renew even if not set to expire
8+
# --webroot : use the active webserver to place challenge, so Certbot
9+
# doesn't need to listen on port 80 directly.
10+
docker compose run --rm certbot certonly --force-renew \
11+
--webroot --webroot-path /var/www/certbot/ \
12+
-d urbanonline.naturalcapitalproject.org;

0 commit comments

Comments
 (0)