nginx_build_script: fix: make install
doesn't run with root privilages
This commit is contained in:
parent
f90338f45f
commit
278510c841
@ -173,10 +173,10 @@ if [ ! "${DISABLE_LUA}" == true ]; then
|
|||||||
git clone https://github.com/openresty/luajit2 $HOMEDIRECTORY/nginx-lua/luajit2
|
git clone https://github.com/openresty/luajit2 $HOMEDIRECTORY/nginx-lua/luajit2
|
||||||
git clone https://github.com/openresty/lua-resty-string $HOMEDIRECTORY/nginx-lua/lua-resty-string
|
git clone https://github.com/openresty/lua-resty-string $HOMEDIRECTORY/nginx-lua/lua-resty-string
|
||||||
|
|
||||||
cd $HOMEDIRECTORY/nginx-lua/luajit2 && make && make install PREFIX=/opt/nginx-lua-module/luajit2
|
cd $HOMEDIRECTORY/nginx-lua/luajit2 && make && sudo make install PREFIX=/opt/nginx-lua-module/luajit2
|
||||||
cd $HOMEDIRECTORY/nginx-lua/lua-resty-core && make install PREFIX=/usr/local/lua LUA_LIB_DIR=/usr/local/lua
|
cd $HOMEDIRECTORY/nginx-lua/lua-resty-core && sudo make install PREFIX=/usr/local/lua LUA_LIB_DIR=/usr/local/lua
|
||||||
cd $HOMEDIRECTORY/nginx-lua/lua-resty-lrucache && make install PREFIX=/usr/local/lua LUA_LIB_DIR=/usr/local/lua
|
cd $HOMEDIRECTORY/nginx-lua/lua-resty-lrucache && sudo make install PREFIX=/usr/local/lua LUA_LIB_DIR=/usr/local/lua
|
||||||
cd $HOMEDIRECTORY/nginx-lua/lua-resty-string && make install PREFIX=/usr/local/lua LUA_LIB_DIR=/usr/local/lua
|
cd $HOMEDIRECTORY/nginx-lua/lua-resty-string && sudo make install PREFIX=/usr/local/lua LUA_LIB_DIR=/usr/local/lua
|
||||||
|
|
||||||
export LUAJIT_LIB=/opt/nginx-lua-module/luajit2/lib
|
export LUAJIT_LIB=/opt/nginx-lua-module/luajit2/lib
|
||||||
export LUAJIT_INC=/opt/nginx-lua-module/luajit2/include/luajit-2.1
|
export LUAJIT_INC=/opt/nginx-lua-module/luajit2/include/luajit-2.1
|
||||||
|
Loading…
Reference in New Issue
Block a user