Commit 73b8b120 authored by neil's avatar neil
Browse files

use domain api in sub shell.

parent 6839de66
......@@ -1040,20 +1040,26 @@ issue() {
_err "so the resulting subdomain will be: $txtdomain"
continue
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
_err "It seems that your api file is not correct, it must have a function named: $addcommand"
return 1
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
_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
_err "Error add txt for domain:$txtdomain"
if [[ "$?" != "0" ]] ; then
return 1
fi
dnsadded='1'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment