Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
78768e98
Commit
78768e98
authored
May 21, 2016
by
neil
Browse files
minor, add more apache debug info
parent
2ee5d873
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
78768e98
...
@@ -916,16 +916,19 @@ _apachePath() {
...
@@ -916,16 +916,19 @@ _apachePath() {
return
1
return
1
fi
fi
httpdconfname
=
"
$(
apachectl
-V
|
grep
SERVER_CONFIG_FILE
=
|
cut
-d
=
-f
2 |
tr
-d
'"'
)
"
httpdconfname
=
"
$(
apachectl
-V
|
grep
SERVER_CONFIG_FILE
=
|
cut
-d
=
-f
2 |
tr
-d
'"'
)
"
_debug httpdconfname
"
$httpdconfname
"
if
_startswith
"
$httpdconfname
"
'/'
;
then
if
_startswith
"
$httpdconfname
"
'/'
;
then
httpdconf
=
"
$httpdconfname
"
httpdconf
=
"
$httpdconfname
"
httpdconfname
=
"
$(
basename
$httpdconfname
)
"
httpdconfname
=
"
$(
basename
$httpdconfname
)
"
else
else
httpdroot
=
"
$(
apachectl
-V
|
grep
HTTPD_ROOT
=
|
cut
-d
=
-f
2 |
tr
-d
'"'
)
"
httpdroot
=
"
$(
apachectl
-V
|
grep
HTTPD_ROOT
=
|
cut
-d
=
-f
2 |
tr
-d
'"'
)
"
_debug httpdroot
"
$httpdroot
"
httpdconf
=
"
$httpdroot
/
$httpdconfname
"
httpdconf
=
"
$httpdroot
/
$httpdconfname
"
fi
fi
_debug httpdconf
"
$httpdconf
"
if
[
!
-f
$httpdconf
]
;
then
if
[
!
-f
"
$httpdconf
"
]
;
then
_err
"Apache Config file not found"
$httpdconf
_err
"Apache Config file not found"
"
$httpdconf
"
return
1
return
1
fi
fi
return
0
return
0
...
...
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