mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 19:14:49 +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() {
|
||||
fulldomain="${1}"
|
||||
txtvalue="${2}"
|
||||
_ISPC_login
|
||||
if [ $? -eq 0 ]; then
|
||||
_ISPC_getZoneInfo
|
||||
fi
|
||||
if [ $? -eq 0 ]; then
|
||||
_ISPC_addTxt
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
return 1
|
||||
fi
|
||||
_ISPC_login && _ISPC_getZoneInfo && _ISPC_addTxt || return 1
|
||||
}
|
||||
|
||||
#Usage: dns_myapi_rm _acme-challenge.www.domain.com
|
||||
dns_ispconfig_rm() {
|
||||
fulldomain="${1}"
|
||||
_ISPC_login
|
||||
if [ $? -eq 0 ]; then
|
||||
_ISPC_rmTxt
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
return 1
|
||||
fi
|
||||
_ISPC_login && _ISPC_rmTxt || return 1
|
||||
}
|
||||
|
||||
#################### Private functions bellow ##################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user