Update install nginx script.

This commit is contained in:
BoHung Chiu 2022-08-20 16:35:44 +08:00
parent 6a69090d0f
commit afc5c02215
1 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,11 @@ cpu_cores="$(nproc --all)"
openssl_ver="$(openssl version|xargs| awk '{print $2}')" openssl_ver="$(openssl version|xargs| awk '{print $2}')"
openssl_dir="" openssl_dir=""
openssl_source_dir="" openssl_source_dir=""
if [[ "$openssl_ver" < "1.1.1" ]]; then force_reinstall_openssl="0"
if [[ ! -d "/usr/include/openssl" ]] && [[ ! -d "/usr/local/include/openssl" ]] && [[ ! -d "/usr/pkg/include/openssl" ]] && [[ ! -d "/opt/local/include/openssl" ]]; then
force_reinstall_openssl="1"
fi
if [[ "$openssl_ver" < "1.1.1" ]] || [[ "$force_reinstall_openssl" == "1" ]]; then
# Build openssl # Build openssl
target_openssl_ver="1.1.1m" target_openssl_ver="1.1.1m"
sudo bash -l -c " sudo bash -l -c "