Browse Source

Fixes for Travis CI

-removing some blanks etc.
pull/2777/head
ThiloGa 5 years ago
parent
commit
30416f54d1
  1. 4
      dnsapi/dns_nm.sh

4
dnsapi/dns_nm.sh

@ -32,13 +32,12 @@ dns_nm_add() {
_saveaccountconf_mutable NM_user "$NM_user" _saveaccountconf_mutable NM_user "$NM_user"
_saveaccountconf_mutable NM_md5 "$NM_md5" _saveaccountconf_mutable NM_md5 "$NM_md5"
zone="$(echo $fulldomain | _egrep_o "[^.]+.[^.]+$")" zone="$(echo $fulldomain | _egrep_o "[^.]+.[^.]+$")"
get="https://namemaster.de/api/api.php?User=$NM_user&Password=$NM_md5&Antwort=csv&Int=0&Typ=ACME&Zone=$zone&hostname=$fulldomain&TXT=$txt_value&Action=Auto&Lifetime=3600" get="https://namemaster.de/api/api.php?User=$NM_user&Password=$NM_md5&Antwort=csv&Int=0&Typ=ACME&Zone=$zone&hostname=$fulldomain&TXT=$txt_value&Action=Auto&Lifetime=3600"
erg="$(_get "$get")" erg="$(_get "$get")"
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
_err "error $action $zone TXT: $txt"
_err "error Auto $zone TXT: $txt"
_err "Error $?" _err "Error $?"
return 1 return 1
fi fi
@ -79,7 +78,6 @@ txt_value=$2
if _contains "$erg" "Success"; then if _contains "$erg" "Success"; then
_info "Success, TXT removed, OK" _info "Success, TXT removed, OK"
else else
_err "error Auto $zone TXT: $txt erg: $erg" _err "error Auto $zone TXT: $txt erg: $erg"
return 1 return 1

Loading…
Cancel
Save