Update install_nginx.sh
This commit is contained in:
parent
a517b8ce3a
commit
a76b2973f1
|
@ -37,7 +37,8 @@ if [[ "$openssl_ver" < "1.1.1" ]] || [[ "$force_reinstall_openssl" == "1" ]]; th
|
||||||
rm -f /usr/bin/openssl &&
|
rm -f /usr/bin/openssl &&
|
||||||
ln -sf /opt/openssl/bin/* /usr/bin/. &&
|
ln -sf /opt/openssl/bin/* /usr/bin/. &&
|
||||||
echo '/opt/openssl/lib' > /etc/ld.so.conf.d/openssl.conf &&
|
echo '/opt/openssl/lib' > /etc/ld.so.conf.d/openssl.conf &&
|
||||||
ldconfig"
|
ldconfig &&
|
||||||
|
cp -f /opt/openssl/lib/pkgconfig/openssl.pc /usr/lib/x86_64-linux-gnu/pkgconfig/."
|
||||||
openssl_ver="$target_openssl_ver"
|
openssl_ver="$target_openssl_ver"
|
||||||
cd "$org_pwd"
|
cd "$org_pwd"
|
||||||
openssl_dir="/opt/openssl"
|
openssl_dir="/opt/openssl"
|
||||||
|
@ -143,7 +144,7 @@ if [[ "$@" == *"--install-passenger"* ]];then
|
||||||
sudo apt-get -y install libcurl4-openssl-dev
|
sudo apt-get -y install libcurl4-openssl-dev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nginx_configure="$nginx_configure --add-dynamic-module=$(sudo bash -l -c "$path_for_sudo passenger-config --nginx-addon-dir")"
|
nginx_configure="$nginx_configure --add-dynamic-module=$(bash -l -c "$path_for_sudo passenger-config --nginx-addon-dir")"
|
||||||
nginx_configure="export $path_for_sudo && $nginx_configure"
|
nginx_configure="export $path_for_sudo && $nginx_configure"
|
||||||
echo $nginx_configure
|
echo $nginx_configure
|
||||||
extra_build_nginx_cmd="$extra_build_nginx_cmd && ln -s /usr/lib/nginx/modules/ngx_http_passenger_module.so /etc/nginx/modules-enabled/ngx_http_passenger_module.so && \
|
extra_build_nginx_cmd="$extra_build_nginx_cmd && ln -s /usr/lib/nginx/modules/ngx_http_passenger_module.so /etc/nginx/modules-enabled/ngx_http_passenger_module.so && \
|
||||||
|
|
Loading…
Reference in New Issue