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
d0f7c309
Commit
d0f7c309
authored
Jan 03, 2017
by
neilpang
Browse files
run pre-hook first
parent
9e773c91
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
d0f7c309
...
@@ -2075,6 +2075,17 @@ _clearupwebbroot() {
...
@@ -2075,6 +2075,17 @@ _clearupwebbroot() {
_on_before_issue
()
{
_on_before_issue
()
{
_debug _on_before_issue
_debug _on_before_issue
#run pre hook
if
[
"
$Le_PreHook
"
]
;
then
_info
"Run pre hook:'
$Le_PreHook
'"
if
!
(
cd
"
$DOMAIN_PATH
"
&&
eval
"
$Le_PreHook
"
)
;
then
_err
"Error when run pre hook."
return
1
fi
fi
if
_hasfield
"
$Le_Webroot
"
"
$NO_VALUE
"
;
then
if
_hasfield
"
$Le_Webroot
"
"
$NO_VALUE
"
;
then
if
!
_exists
"nc"
;
then
if
!
_exists
"nc"
;
then
_err
"Please install netcat(nc) tools first."
_err
"Please install netcat(nc) tools first."
...
@@ -2142,16 +2153,6 @@ _on_before_issue() {
...
@@ -2142,16 +2153,6 @@ _on_before_issue() {
usingApache
=
""
usingApache
=
""
fi
fi
#run pre hook
if
[
"
$Le_PreHook
"
]
;
then
_info
"Run pre hook:'
$Le_PreHook
'"
if
!
(
cd
"
$DOMAIN_PATH
"
&&
eval
"
$Le_PreHook
"
)
;
then
_err
"Error when run pre hook."
return
1
fi
fi
}
}
_on_issue_err
()
{
_on_issue_err
()
{
...
...
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