Skip to content
Snippets Groups Projects

Resolve "Bug in devcontainer: patch file not found in openresty-voms installation"

All threads resolved!
2 files
+ 3
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -102,8 +102,8 @@ if [ ! -d "${module_root}" ]; then
@@ -102,8 +102,8 @@ if [ ! -d "${module_root}" ]; then
exit 1
exit 1
fi
fi
if [ ! -f "./nginx-httpg_no_delegation.patch" ]; then
if [ ! -f "/workspaces/ngx_http_voms_module/nginx-httpg_no_delegation.patch" ]; then
>&2 echo 'nginx-httpg_no_delegation.patch not found in current dir.'
>&2 echo "nginx-httpg_no_delegation.patch not found in ${module_root} dir."
exit 1
exit 1
fi
fi
@@ -126,7 +126,7 @@ cd ${openresty_root}
@@ -126,7 +126,7 @@ cd ${openresty_root}
nginx_version=$(find build -name nginx.h | xargs awk '/define NGINX_VERSION/ {print $3}' | tr -d '"')
nginx_version=$(find build -name nginx.h | xargs awk '/define NGINX_VERSION/ {print $3}' | tr -d '"')
cd build/nginx-${nginx_version}
cd build/nginx-${nginx_version}
patch -p1 < nginx-httpg_no_delegation.patch
patch -p1 < ${module_root}/nginx-httpg_no_delegation.patch
cd -
cd -
make -j $(nproc)
make -j $(nproc)
Loading