Browse Source

fix ci error

pull/3549/head
Florian Pfitzer 4 years ago
parent
commit
bb7cdb3185
  1. 5
      dnsapi/dns_burp.sh

5
dnsapi/dns_burp.sh

@ -23,7 +23,7 @@ dns_burp_add() {
_saveaccountconf_mutable BURP_COLLABORATOR_RESTART "$BURP_COLLABORATOR_RESTART" _saveaccountconf_mutable BURP_COLLABORATOR_RESTART "$BURP_COLLABORATOR_RESTART"
json=$(cat $BURP_COLLABORATOR_CONFIG) json=$(cat $BURP_COLLABORATOR_CONFIG)
json=$(echo $json|jq ".customDnsRecords += [{\"label\": \"_acme-challenge\", \"record\": \"$txtvalue\", \"type\": \"TXT\", \"ttl\": 60}]")
json=$(echo "$json" | jq ".customDnsRecords += [{\"label\": \"_acme-challenge\", \"record\": \"$txtvalue\", \"type\": \"TXT\", \"ttl\": 60}]")
echo "$json" >$BURP_COLLABORATOR_CONFIG echo "$json" >$BURP_COLLABORATOR_CONFIG
@ -35,12 +35,11 @@ dns_burp_add() {
#Usage: fulldomain txtvalue #Usage: fulldomain txtvalue
#Remove the txt record after validation. #Remove the txt record after validation.
dns_burp_rm() { dns_burp_rm() {
fulldomain=$1
txtvalue=$2 txtvalue=$2
_info "Using burp" _info "Using burp"
json=$(cat $BURP_COLLABORATOR_CONFIG) json=$(cat $BURP_COLLABORATOR_CONFIG)
json=$(echo $json|jq "del(.customDnsRecords[] | select(.label == \"_acme-challenge\"))")
json=$(echo "$json" | jq "del(.customDnsRecords[] | select(.label == \"_acme-challenge\"))")
echo "$json" >$BURP_COLLABORATOR_CONFIG echo "$json" >$BURP_COLLABORATOR_CONFIG

Loading…
Cancel
Save