Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
82b0ebb7
Commit
82b0ebb7
authored
Mar 16, 2019
by
neilpang
Browse files
minor, remove dns records only when it's added success
parent
3f35006c
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
82b0ebb7
...
@@ -3931,21 +3931,21 @@ $_authorizations_map"
...
@@ -3931,21 +3931,21 @@ $_authorizations_map"
else
else
txtdomain
=
"_acme-challenge.
$_d_alias
"
txtdomain
=
"_acme-challenge.
$_d_alias
"
fi
fi
dns_entr
ies
=
"
${
dns_entries
}
${
_dns_root_d
}${
dvsep
}
_acme-challenge.
$_dns_root_d$dvsep$txtdomain$dvsep$_currentRoot
"
dns_entr
y
=
"
${
_dns_root_d
}${
dvsep
}
_acme-challenge.
$_dns_root_d$dvsep$txtdomain$dvsep$_currentRoot
"
else
else
txtdomain
=
"_acme-challenge.
$_dns_root_d
"
txtdomain
=
"_acme-challenge.
$_dns_root_d
"
dns_entr
ies
=
"
${
dns_entries
}
${
_dns_root_d
}${
dvsep
}
_acme-challenge.
$_dns_root_d$dvsep$dvsep$_currentRoot
"
dns_entr
y
=
"
${
_dns_root_d
}${
dvsep
}
_acme-challenge.
$_dns_root_d$dvsep$dvsep$_currentRoot
"
fi
fi
_debug txtdomain
"
$txtdomain
"
_debug txtdomain
"
$txtdomain
"
txt
=
"
$(
printf
"%s"
"
$keyauthorization
"
| _digest
"sha256"
| _url_replace
)
"
txt
=
"
$(
printf
"%s"
"
$keyauthorization
"
| _digest
"sha256"
| _url_replace
)
"
_debug txt
"
$txt
"
_debug txt
"
$txt
"
d_api
=
"
$(
_findHook
"
$_dns_root_d
"
dnsapi
"
$_currentRoot
"
)
"
d_api
=
"
$(
_findHook
"
$_dns_root_d
"
dnsapi
"
$_currentRoot
"
)
"
_debug d_api
"
$d_api
"
_debug d_api
"
$d_api
"
dns_entries
=
"
$dns_entries$dvsep$txt
${
dvsep
}
$d_api
"
dns_entry
=
"
$dns_entry$dvsep$txt
${
dvsep
}
$d_api
"
_debug2
"
$dns_entr
ies
"
_debug2
dns_entry
"
$dns_entr
y
"
if
[
"
$d_api
"
]
;
then
if
[
"
$d_api
"
]
;
then
_info
"Found domain api file:
$d_api
"
_info
"Found domain api file:
$d_api
"
else
else
...
@@ -3984,6 +3984,9 @@ $_authorizations_map"
...
@@ -3984,6 +3984,9 @@ $_authorizations_map"
_clearup
_clearup
return
1
return
1
fi
fi
dns_entries
=
"
$dns_entries$dns_entry
"
_debug2
"
$dns_entries
"
dnsadded
=
'1'
dnsadded
=
'1'
fi
fi
done
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment