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
3f42487f
Unverified
Commit
3f42487f
authored
Sep 02, 2023
by
neil
Committed by
GitHub
Sep 02, 2023
Browse files
Merge pull request #4749 from Nirzak/Nirzak-patch-1
Fixed grep pattern regex for nginx conf path
parents
8bdcd224
13d31ecb
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
3f42487f
...
@@ -3130,7 +3130,7 @@ _setNginx() {
...
@@ -3130,7 +3130,7 @@ _setNginx() {
_err "nginx command is not found."
_err "nginx command is not found."
return 1
return 1
fi
fi
NGINX_CONF
=
"
$(
nginx
-V
2>&1 | _egrep_o
"
-
-conf-path=[^ ]* "
|
tr
-d
" "
)
"
NGINX_CONF="$(nginx -V 2>&1 | _egrep_o "
\-\
-conf-path=[^ ]* " | tr -d " ")"
_debug NGINX_CONF "$NGINX_CONF"
_debug NGINX_CONF "$NGINX_CONF"
NGINX_CONF="$(echo "$NGINX_CONF" | cut -d = -f 2)"
NGINX_CONF="$(echo "$NGINX_CONF" | cut -d = -f 2)"
_debug NGINX_CONF "$NGINX_CONF"
_debug NGINX_CONF "$NGINX_CONF"
...
...
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