mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-12 11:55:28 +08:00
bugfix(CLI): fix wrong info Warning! Running apisix under /root
when make init
at non-root path (#1976)
This commit is contained in:
parent
90867ed744
commit
4cbb324cca
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user