mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 22:51:39 +00:00
use domain api in sub shell.
This commit is contained in:
parent
6839de663f
commit
73b8b12016
30
le.sh
30
le.sh
@ -1040,20 +1040,26 @@ issue() {
|
|||||||
_err "so the resulting subdomain will be: $txtdomain"
|
_err "so the resulting subdomain will be: $txtdomain"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! source $d_api ; then
|
|
||||||
_err "Load file $d_api error. Please check your api file and try again."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
addcommand="$Le_Webroot-add"
|
(
|
||||||
if ! command -v $addcommand ; then
|
if ! source $d_api ; then
|
||||||
_err "It seems that your api file is not correct, it must have a function named: $addcommand"
|
_err "Load file $d_api error. Please check your api file and try again."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
addcommand="$Le_Webroot-add"
|
||||||
|
if ! command -v $addcommand ; then
|
||||||
|
_err "It seems that your api file is not correct, it must have a function named: $addcommand"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! $addcommand $txtdomain $txt ; then
|
||||||
|
_err "Error add txt for domain:$txtdomain"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
)
|
||||||
|
|
||||||
if ! $addcommand $txtdomain $txt ; then
|
if [[ "$?" != "0" ]] ; then
|
||||||
_err "Error add txt for domain:$txtdomain"
|
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
dnsadded='1'
|
dnsadded='1'
|
||||||
|
Loading…
Reference in New Issue
Block a user