From b6169098462d2a614fbf055f428528fe597e5ded Mon Sep 17 00:00:00 2001 From: minoplhy Date: Mon, 29 Apr 2024 01:37:10 +0700 Subject: [PATCH] nginx_build_script: fix: Incorrect build directory for luajit --- nginx_build_script/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx_build_script/build.sh b/nginx_build_script/build.sh index 1c65327..f4c38ce 100644 --- a/nginx_build_script/build.sh +++ b/nginx_build_script/build.sh @@ -87,6 +87,7 @@ case $SSL_LIB in ninja -C build export DESTDIR=$HOMEDIRECTORY/libressl/libressl-build ninja install -C build + export -n DESTDIR # unset to avoid problems with Luajit2/Lua* mkdir -p /opt/libressl/.openssl cp -r $HOMEDIRECTORY/libressl/libressl-build/usr/local/include /opt/libressl/.openssl @@ -140,7 +141,7 @@ cmake --build . --config Release --target brotlienc # lua resty core,lrucache,luajit2 if [ ! "${DISABLE_LUA}" == true ]; then - mkdir $HOMEDIRECTORY/nginx-lua && cd $HOMEDIRECTORY/nginx-lua + mkdir -p $HOMEDIRECTORY/nginx-lua && cd $HOMEDIRECTORY/nginx-lua mkdir -p /opt/nginx-lua-module/ git clone https://github.com/openresty/lua-resty-core $HOMEDIRECTORY/nginx-lua/lua-resty-core git clone https://github.com/openresty/lua-resty-lrucache $HOMEDIRECTORY/nginx-lua/lua-resty-lrucache