Update install_nginx.sh
This commit is contained in:
parent
a0a78f9881
commit
ead042998a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue