You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2020/12/18 08:40:27 UTC

[apisix] branch master updated: fix: add control directory in installation (#3077)

This is an automated email from the ASF dual-hosted git repository.

spacewander 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 4d2f271  fix: add control directory in installation (#3077)
4d2f271 is described below

commit 4d2f271a06fb8d85c0f836c120ba0cd77b31e1ba
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Fri Dec 18 16:40:17 2020 +0800

    fix: add control directory in installation (#3077)
    
    Signed-off-by: spacewander <sp...@gmail.com>
---
 .travis/linux_apisix_master_luarocks_runner.sh | 3 +++
 Makefile                                       | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/.travis/linux_apisix_master_luarocks_runner.sh b/.travis/linux_apisix_master_luarocks_runner.sh
index 7fb3664..fade03c 100755
--- a/.travis/linux_apisix_master_luarocks_runner.sh
+++ b/.travis/linux_apisix_master_luarocks_runner.sh
@@ -40,6 +40,9 @@ script() {
 
     which apisix
 
+    sudo mkdir -p /usr/local/apisix/apisix
+    sudo cp -r ../apisix/control /usr/local/apisix/apisix/control
+
     # run test
     sudo PATH=$PATH apisix help
     sudo PATH=$PATH apisix init
diff --git a/Makefile b/Makefile
index a9a5912..6ff3017 100644
--- a/Makefile
+++ b/Makefile
@@ -135,6 +135,9 @@ install: default
 	$(INSTALL) -d $(INST_LUADIR)/apisix/balancer
 	$(INSTALL) apisix/balancer/*.lua $(INST_LUADIR)/apisix/balancer/
 
+	$(INSTALL) -d $(INST_LUADIR)/apisix/control
+	$(INSTALL) apisix/control/*.lua $(INST_LUADIR)/apisix/control/
+
 	$(INSTALL) -d $(INST_LUADIR)/apisix/core
 	$(INSTALL) apisix/core/*.lua $(INST_LUADIR)/apisix/core/