]> git.openstreetmap.org Git - chef.git/commitdiff
Use the directory name as the certificate name for uploads
authorTom Hughes <tom@compton.nu>
Fri, 13 Oct 2023 08:05:47 +0000 (09:05 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 13 Oct 2023 08:05:47 +0000 (09:05 +0100)
cookbooks/letsencrypt/files/default/bin/renew-hook

index b7c7af196aebf442ba701868a5cc1b2146b33065..13ad5fdc025e09b02fbaf4ab697c1d7b8b9c247b 100755 (executable)
@@ -1,7 +1,5 @@
 #!/bin/bash
 
-domains=($RENEWED_DOMAINS)
-
 exec 2>&1
 
-exec /srv/acme.openstreetmap.org/bin/upload "${domains[0]}" "$RENEWED_LINEAGE"
+exec /srv/acme.openstreetmap.org/bin/upload "$(basename $RENEWED_LINEAGE)" "$RENEWED_LINEAGE"