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;]=]