Update install_nginx.sh

This commit is contained in:
BoHung Chiu 2023-07-03 13:30:02 +08:00
parent a0a78f9881
commit ead042998a
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ if [[ "$openssl_ver" < "1.1.1" ]] || [[ "$force_reinstall_openssl" == "1" ]]; th
./config no-ssl2 no-ssl3 zlib-dynamic -fPIC shared --prefix=/opt/openssl &&
make depend -j$cpu_cores && make install &&
rm -f /usr/bin/openssl &&
ln -s /opt/openssl/bin/* /usr/bin/. &&
ln -sf /opt/openssl/bin/* /usr/bin/. &&
echo '/opt/openssl/lib' > /etc/ld.so.conf.d/openssl.conf &&
ldconfig"
openssl_ver="$target_openssl_ver"
@ -138,7 +138,7 @@ if [[ "$@" == *"--install-passenger"* ]];then
gem_path=`which gem`
path_for_sudo=`sudo bash -l -c 'echo $PATH'`
path_for_sudo="PATH=$(dirname $gem_path):$path_for_sudo"
sudo bash -l -c "$path_for_sudo $gem_path install passenger"
$gem_path install passenger
if [ ! -d "/usr/include/curl" ]; then # /usr/include/curl must exist when building passenger nginx
sudo apt-get -y install libcurl4-openssl-dev
fi