mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 19:07:43 +00:00
Put all the ISPC functions into one check
This commit is contained in:
parent
dd29104f38
commit
caeb2301f5
@ -15,28 +15,13 @@
|
|||||||
dns_ispconfig_add() {
|
dns_ispconfig_add() {
|
||||||
fulldomain="${1}"
|
fulldomain="${1}"
|
||||||
txtvalue="${2}"
|
txtvalue="${2}"
|
||||||
_ISPC_login
|
_ISPC_login && _ISPC_getZoneInfo && _ISPC_addTxt || return 1
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
_ISPC_getZoneInfo
|
|
||||||
fi
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
_ISPC_addTxt
|
|
||||||
fi
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#Usage: dns_myapi_rm _acme-challenge.www.domain.com
|
#Usage: dns_myapi_rm _acme-challenge.www.domain.com
|
||||||
dns_ispconfig_rm() {
|
dns_ispconfig_rm() {
|
||||||
fulldomain="${1}"
|
fulldomain="${1}"
|
||||||
_ISPC_login
|
_ISPC_login && _ISPC_rmTxt || return 1
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
_ISPC_rmTxt
|
|
||||||
fi
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#################### Private functions bellow ##################################
|
#################### Private functions bellow ##################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user