mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-07-05 10:52:43 +00:00
Update dns_ls.sh
This commit is contained in:
parent
33a5088aa2
commit
27e9508174
@ -33,10 +33,12 @@ dns_ls_add() {
|
|||||||
response="$(_post "secretkey=${LS_Key}&domain=${fulldomain}&rval=${txtvalue}" "$LS_API")"
|
response="$(_post "secretkey=${LS_Key}&domain=${fulldomain}&rval=${txtvalue}" "$LS_API")"
|
||||||
if _contains "${response}" 'success'; then
|
if _contains "${response}" 'success'; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
else
|
||||||
_err "Could not create resource record, check logs"
|
_err "Could not create resource record, check logs"
|
||||||
_err "${response}"
|
_err "${response}"
|
||||||
return 1
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,8 +61,11 @@ dns_ls_rm() {
|
|||||||
response="$(_post "secretkey=${LS_Key}&domain=${fulldomain}&rval=${txtvalue}&option=del" "$LS_API")"
|
response="$(_post "secretkey=${LS_Key}&domain=${fulldomain}&rval=${txtvalue}&option=del" "$LS_API")"
|
||||||
if _contains "${response}" 'success'; then
|
if _contains "${response}" 'success'; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
else
|
||||||
_err "Could not del resource record, check logs"
|
_err "Could not del resource record, check logs"
|
||||||
_err "${response}"
|
_err "${response}"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
#################### Private functions below ##################################
|
#################### Private functions below ##################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user