mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
World4You Mac fix
This commit is contained in:
parent
f38317d01f
commit
be43cebf7d
@ -53,10 +53,11 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
|
|||||||
_resethttp
|
_resethttp
|
||||||
|
|
||||||
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
||||||
msg=$(_get "$WORLD4YOU_API/$paketnr/dns" | tr '\n' '\t' | sed 's/.*<h3 class="mb-5">[^\t]*\t *\([^\t]*\)\t.*/\1/')
|
res=$(_get "$WORLD4YOU_API/$paketnr/dns")
|
||||||
if _contains "$msg" "successfully"; then
|
if _contains "$res" "successfully"; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
msg=$(echo "$res" | tr '\n' '\t' | sed 's/.*<h3 class="mb-5">[^\t]*\t *\([^\t]*\)\t.*/\1/')
|
||||||
_err "Unable to add record: $msg"
|
_err "Unable to add record: $msg"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -111,10 +112,11 @@ DeleteDnsRecordForm[_token]=$form_token"
|
|||||||
_resethttp
|
_resethttp
|
||||||
|
|
||||||
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
||||||
msg=$(_get "$WORLD4YOU_API/$paketnr/dns" | tr '\n' '\t' | sed 's/.*<h3 class="mb-5">[^\t]*\t *\([^\t]*\)\t.*/\1/')
|
res=$(_get "$WORLD4YOU_API/$paketnr/dns")
|
||||||
if _contains "$msg" "successfully"; then
|
if _contains "$res" "successfully"; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
msg=$(echo "$res" | tr '\n' '\t' | sed 's/.*<h3 class="mb-5">[^\t]*\t *\([^\t]*\)\t.*/\1/')
|
||||||
_err "Unable to remove record: $msg"
|
_err "Unable to remove record: $msg"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user