Skip to content

Commit

Permalink
change: drop the support of shell script installation (#4985)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander committed Sep 6, 2021
1 parent 1da8e5c commit b91be9f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 97 deletions.
3 changes: 0 additions & 3 deletions bin/apisix
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ if [ -s './apisix/cli/apisix.lua' ]; then
elif [ -s '/usr/local/share/lua/5.1/apisix/cli/apisix.lua' ]; then
# install via luarock
APISIX_LUA=/usr/local/share/lua/5.1/apisix/cli/apisix.lua
elif [ -s '/usr/local/apisix/deps/share/lua/5.1/apisix/cli/apisix.lua' ]; then
# install via shell
APISIX_LUA=/usr/local/apisix/deps/share/lua/5.1/apisix/cli/apisix.lua
else
# install via official rpm or docker
APISIX_LUA=/usr/local/apisix/apisix/cli/apisix.lua
Expand Down
18 changes: 0 additions & 18 deletions ci/linux_apisix_master_luarocks_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,6 @@ script() {
mkdir tmp && cd tmp
cp -r ../utils ./

# install APISIX by shell
sudo mkdir -p /usr/local/apisix/deps
sudo PATH=$PATH ./utils/install-apisix.sh install > build.log 2>&1 || (cat build.log && exit 1)
cp ../bin/apisix /usr/bin/apisix
tree /usr/local/apisix/

which apisix

# run test
sudo PATH=$PATH apisix help
sudo PATH=$PATH apisix init
sudo PATH=$PATH apisix start
sudo PATH=$PATH apisix quit
sudo PATH=$PATH apisix start
sudo PATH=$PATH apisix stop

sudo PATH=$PATH ./utils/install-apisix.sh remove > build.log 2>&1 || (cat build.log && exit 1)

# install APISIX by luarocks
sudo luarocks install $APISIX_MAIN > build.log 2>&1 || (cat build.log && exit 1)
cp ../bin/apisix /usr/local/bin/apisix
Expand Down
76 changes: 0 additions & 76 deletions utils/install-apisix.sh

This file was deleted.

0 comments on commit b91be9f

Please sign in to comment.