use domain api in sub shell.
parent
6839de663f
commit
73b8b12016
28
le.sh
28
le.sh
|
@ -1041,19 +1041,25 @@ issue() {
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! source $d_api ; then
|
(
|
||||||
_err "Load file $d_api error. Please check your api file and try again."
|
if ! source $d_api ; then
|
||||||
return 1
|
_err "Load file $d_api error. Please check your api file and try again."
|
||||||
fi
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
addcommand="$Le_Webroot-add"
|
addcommand="$Le_Webroot-add"
|
||||||
if ! command -v $addcommand ; then
|
if ! command -v $addcommand ; then
|
||||||
_err "It seems that your api file is not correct, it must have a function named: $addcommand"
|
_err "It seems that your api file is not correct, it must have a function named: $addcommand"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! $addcommand $txtdomain $txt ; then
|
if ! $addcommand $txtdomain $txt ; then
|
||||||
_err "Error add txt for domain:$txtdomain"
|
_err "Error add txt for domain:$txtdomain"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ "$?" != "0" ]] ; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
dnsadded='1'
|
dnsadded='1'
|
||||||
|
|
Loading…
Reference in New Issue