You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/08/03 11:12:11 UTC
[apisix] branch master updated: bugfix(CLI): fix wrong info
`Warning! Running apisix under /root` when `make init` at non-root path
(#1976)
This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 4cbb324 bugfix(CLI): fix wrong info `Warning! Running apisix under /root` when `make init` at non-root path (#1976)
4cbb324 is described below
commit 4cbb324cca0e50823dc941883e2cde906e81b5d4
Author: wonglend <gk...@qq.com>
AuthorDate: Mon Aug 3 19:12:02 2020 +0800
bugfix(CLI): fix wrong info `Warning! Running apisix under /root` when `make init` at non-root path (#1976)
---
bin/apisix | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/apisix b/bin/apisix
index 762c326..3f189d0 100755
--- a/bin/apisix
+++ b/bin/apisix
@@ -52,7 +52,7 @@ if script_path:sub(1, 2) == './' then
error("failed to fetch current path")
end
- if string.match(apisix_home, '^/[root][^/]+') then
+ if string.match(apisix_home .. "/", '^/root/') then
is_root_path = true
end