mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-09 09:32:44 +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")"
|
||||
if _contains "${response}" 'success'; then
|
||||
return 0
|
||||
else
|
||||
_err "Could not create resource record, check logs"
|
||||
_err "${response}"
|
||||
return 1
|
||||
fi
|
||||
_err "Could not create resource record, check logs"
|
||||
_err "${response}"
|
||||
return 1
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -59,8 +61,11 @@ dns_ls_rm() {
|
||||
response="$(_post "secretkey=${LS_Key}&domain=${fulldomain}&rval=${txtvalue}&option=del" "$LS_API")"
|
||||
if _contains "${response}" 'success'; then
|
||||
return 0
|
||||
else
|
||||
_err "Could not del resource record, check logs"
|
||||
_err "${response}"
|
||||
return 1
|
||||
fi
|
||||
_err "Could not del resource record, check logs"
|
||||
_err "${response}"
|
||||
|
||||
}
|
||||
#################### Private functions below ##################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user