Skip to content
Snippets Groups Projects
Commit 6e80675f authored by lcappelli's avatar lcappelli
Browse files

Bug Fix in devcontainer script

Specify the correct location of the nginx-httpg_no_delegation.patch file in the script for installing openresty-voms in the devcontainer
parent 502a2b59
No related branches found
No related tags found
No related merge requests found
......@@ -102,8 +102,8 @@ if [ ! -d "${module_root}" ]; then
exit 1
fi
if [ ! -f "./nginx-httpg_no_delegation.patch" ]; then
>&2 echo 'nginx-httpg_no_delegation.patch not found in current dir.'
if [ ! -f "/workspaces/ngx_http_voms_module/nginx-httpg_no_delegation.patch" ]; then
>&2 echo "nginx-httpg_no_delegation.patch not found in ${module_root} dir."
exit 1
fi
......@@ -126,7 +126,7 @@ cd ${openresty_root}
nginx_version=$(find build -name nginx.h | xargs awk '/define NGINX_VERSION/ {print $3}' | tr -d '"')
cd build/nginx-${nginx_version}
patch -p1 < nginx-httpg_no_delegation.patch
patch -p1 < ${module_root}/nginx-httpg_no_delegation.patch
cd -
make -j $(nproc)
......
......@@ -63,7 +63,6 @@ if [ -n "\${PS1}" ]; then
echo
echo "To build and install openresty with the ngx_http_voms_module run"
echo " sh build-install-openresty-voms.sh"
echo "The file 'nginx-httpg_no_delegation.patch' is needed in the directory where the user runs the script"
echo
fi
EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment