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
80a0a7b5
Commit
80a0a7b5
authored
Apr 19, 2016
by
neil
Browse files
minor: fix apachectl error message (#160)
parent
641989fd
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
80a0a7b5
...
@@ -871,6 +871,11 @@ _initpath() {
...
@@ -871,6 +871,11 @@ _initpath() {
_apachePath
()
{
_apachePath
()
{
if
!
_exists apachectl
;
then
_err
"'apachecrl not found. It seems that apache is not installed, or you are not root user.'"
_err
"Please use webroot mode to try again."
return
1
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
'"'
)
"
if
_startswith
"
$httpdconfname
"
'/'
;
then
if
_startswith
"
$httpdconfname
"
'/'
;
then
httpdconf
=
"
$httpdconfname
"
httpdconf
=
"
$httpdconfname
"
...
...
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