]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Fixed acmetest for domain acmetestXyzRandomName.github-test.<domain> that was explici...
authorBjarke Bruun <bbruun@gmail.com>
Thu, 7 Jul 2022 07:40:18 +0000 (09:40 +0200)
committerBjarke Bruun <bbruun@gmail.com>
Thu, 7 Jul 2022 07:40:18 +0000 (09:40 +0200)
dnsapi/dns_dnsservices.sh

index feb4e73f9e9786d0fe492b815c4fe55c8dcc6863..89ed02104db720ac628cc63a983de06ada517eb8 100755 (executable)
@@ -204,7 +204,8 @@ deleteRecord() {
   fulldomain=$1
   txtvalue=$2
 
-  if [ "$(echo "$fulldomain" | grep "_acme-challenge")" = "" ]; then
+  # Fix for acmetest to limit acme.sh to only work on _acme-challenge and acmeTestXYzRandomName in GitHub actions
+  if [ "$(echo "$fulldomain" | grep "_acme-challenge\|acmetestXyzRandomName.github-test")" = "" ]; then
     _err "The script tried to delete the record $fulldomain which is not the above created ACME challenge"
     return 1
   fi