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
30c2d84c
Commit
30c2d84c
authored
Sep 26, 2016
by
neil
Browse files
minor: remove useless hook.
parent
fbd2038f
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
30c2d84c
...
@@ -1646,7 +1646,7 @@ _clearupwebbroot() {
...
@@ -1646,7 +1646,7 @@ _clearupwebbroot() {
}
}
_on_before_issue
()
{
_on_before_issue
()
{
_debug _on_before_issue
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."
...
@@ -1731,6 +1731,7 @@ _on_before_issue() {
...
@@ -1731,6 +1731,7 @@ _on_before_issue() {
}
}
_on_issue_err
()
{
_on_issue_err
()
{
_debug _on_issue_err
if
[
"
$LOG_FILE
"
]
;
then
if
[
"
$LOG_FILE
"
]
;
then
_err
"Please check log file for more details:
$LOG_FILE
"
_err
"Please check log file for more details:
$LOG_FILE
"
else
else
...
@@ -1751,6 +1752,7 @@ _on_issue_err() {
...
@@ -1751,6 +1752,7 @@ _on_issue_err() {
}
}
_on_issue_success
()
{
_on_issue_success
()
{
_debug _on_issue_success
#run the post hook
#run the post hook
if
[
"
$Le_PostHook
"
]
;
then
if
[
"
$Le_PostHook
"
]
;
then
_info
"Run post hook:'
$Le_PostHook
'"
_info
"Run post hook:'
$Le_PostHook
'"
...
@@ -2096,20 +2098,17 @@ issue() {
...
@@ -2096,20 +2098,17 @@ issue() {
(
(
if
!
.
$d_api
;
then
if
!
.
$d_api
;
then
_err
"Load file
$d_api
error. Please check your api file and try again."
_err
"Load file
$d_api
error. Please check your api file and try again."
_on_issue_err
return
1
return
1
fi
fi
addcommand
=
"
${
_currentRoot
}
_add"
addcommand
=
"
${
_currentRoot
}
_add"
if
!
_exists
$addcommand
;
then
if
!
_exists
$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
"
_on_issue_err
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
"
_on_issue_err
return
1
return
1
fi
fi
)
)
...
...
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