From 4a681af4cb42b2184d5d79bbdd1be65a6b3797f3 Mon Sep 17 00:00:00 2001 From: YuanSheng Wang Date: Sun, 9 Feb 2020 20:57:13 +0800 Subject: [PATCH] CLI: added missing Lua path. (#1114) --- .travis/check-nginxconf.sh | 2 +- bin/apisix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis/check-nginxconf.sh b/.travis/check-nginxconf.sh index ba8e4b78..938325a1 100644 --- a/.travis/check-nginxconf.sh +++ b/.travis/check-nginxconf.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Licensed to the Apache Software Foundation (ASF) under one or more diff --git a/bin/apisix b/bin/apisix index eea31ef2..db8e97bc 100755 --- a/bin/apisix +++ b/bin/apisix @@ -103,6 +103,7 @@ worker_shutdown_timeout 3; {% if stream_proxy then %} stream { lua_package_path "$prefix/deps/share/lua/5.1/?.lua;/usr/share/lua/5.1/apisix/lua/?.lua;]=] + .. [=[/usr/local/share/lua/5.1/apisix/lua/?.lua;]=] .. [=[$prefix/deps/share/lua/5.1/apisix/lua/?.lua;]=] .. [=[{*apisix_lua_home*}/lua/?.lua;;{*lua_path*};"; lua_package_cpath "$prefix/deps/lib64/lua/5.1/?.so;]=] @@ -150,6 +151,7 @@ stream { http { lua_package_path "$prefix/deps/share/lua/5.1/?.lua;/usr/share/lua/5.1/apisix/lua/?.lua;]=] + .. [=[/usr/local/share/lua/5.1/apisix/lua/?.lua;]=] .. [=[$prefix/deps/share/lua/5.1/apisix/lua/?.lua;]=] .. [=[{*apisix_lua_home*}/lua/?.lua;;{*lua_path*};"; lua_package_cpath "$prefix/deps/lib64/lua/5.1/?.so;]=]