use domain api in sub shell.

pull/118/head
neil 9 years ago
parent 6839de663f
commit 73b8b12016

32
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"
if ! command -v $addcommand ; then addcommand="$Le_Webroot-add"
_err "It seems that your api file is not correct, it must have a function named: $addcommand" if ! command -v $addcommand ; then
return 1 _err "It seems that your api file is not correct, it must have a function named: $addcommand"
fi return 1
fi
if ! $addcommand $txtdomain $txt ; then
_err "Error add txt for domain:$txtdomain" if ! $addcommand $txtdomain $txt ; then
_err "Error add txt for domain:$txtdomain"
return 1
fi
)
if [[ "$?" != "0" ]] ; then
return 1 return 1
fi fi
dnsadded='1' dnsadded='1'

Loading…
Cancel
Save