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
1081d98b
Commit
1081d98b
authored
Sep 05, 2019
by
neilpang
Browse files
support to specify the nginx or site conf for nginx mode.
https://github.com/Neilpang/acme.sh/issues/2469
parent
91d82da4
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
1081d98b
...
@@ -2799,6 +2799,11 @@ _setNginx() {
...
@@ -2799,6 +2799,11 @@ _setNginx() {
_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"
if [ -z "$NGINX_CONF" ]; then
_err "Can not find nginx conf."
NGINX_CONF=""
return 1
fi
if [ ! -f "$NGINX_CONF" ]; then
if [ ! -f "$NGINX_CONF" ]; then
_err "'$NGINX_CONF' doesn't exist."
_err "'$NGINX_CONF' doesn't exist."
NGINX_CONF=""
NGINX_CONF=""
...
@@ -6503,6 +6508,10 @@ _process() {
...
@@ -6503,6 +6508,10 @@ _process() {
;;
;;
--nginx)
--nginx)
wvalue="$NGINX"
wvalue="$NGINX"
if [ "$2" ] && ! _startswith "$2" "-"; then
wvalue="$NGINX$2"
shift
fi
if [ -z "$_webroot" ]; then
if [ -z "$_webroot" ]; then
_webroot="$wvalue"
_webroot="$wvalue"
else
else
...
...
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