diff --git a/install_nginx.sh b/install_nginx.sh index f9b889a..ea31b04 100644 --- a/install_nginx.sh +++ b/install_nginx.sh @@ -65,7 +65,7 @@ if [ "$(readlink -f `which openssl`)" == "/opt/openssl/bin/openssl" ]; then fi fi fi -if [[ $(vercomp "$openssl_ver" "1.1.1") == "<" ]] || [[ "$force_reinstall_openssl" == "1" ]]; then +if [[ $(vercomp "${openssl_ver:0:-1}" "1.1.1") == "<" ]] || [[ "$force_reinstall_openssl" == "1" ]]; then # Build openssl sudo bash -l -c " cd /root &&