]> purplebirdman git - web-certificates.git/commitdiff
Make sure the local docker image is always up to date master
authorClifton Palmer <clifton.james.palmer@protonmail.com>
Mon, 23 Jun 2025 13:59:21 +0000 (08:59 -0500)
committerClifton Palmer <clifton.james.palmer@protonmail.com>
Mon, 23 Jun 2025 13:59:21 +0000 (08:59 -0500)
fetch-certificates.sh

index b203ba020773cf4aca785cb39c4cfcffdee08429..887c665c55d10f41e940ab94193691e4efe536b0 100755 (executable)
@@ -1,6 +1,10 @@
 #!/bin/bash
 # source: https://eff-certbot.readthedocs.io/en/latest/install.html#alternative-1-docker
 
 #!/bin/bash
 # source: https://eff-certbot.readthedocs.io/en/latest/install.html#alternative-1-docker
 
+# make sure the local image is always up to date
+docker image pull certbot/dns-route53
+
+# run local instance only long enough to collect the certificate
 docker run --rm --name certbot \
             -v "/etc/letsencrypt:/etc/letsencrypt" \
             -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
 docker run --rm --name certbot \
             -v "/etc/letsencrypt:/etc/letsencrypt" \
             -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \