Update install nginx script.
This commit is contained in:
parent
6a69090d0f
commit
afc5c02215
|
@ -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 "
|
||||||
|
|
Loading…
Reference in New Issue