This commit is contained in:
deathbybandaid 2023-12-17 10:35:53 -05:00
parent 0213db0dee
commit 54556d6d46

View File

@ -57,12 +57,16 @@ fi
# Ubuntu Jammy need focal repo to get this # Ubuntu Jammy need focal repo to get this
if ! is_shared_lib_present libssl.so.1.1 if ! is_shared_lib_present libssl.so.1.1
then then
distro= $(get_dist)
printf "$COL_YELLOW" "** Distrobution detected as $distro"
if get_dist == "Ubuntu" ]] if get_dist == "Ubuntu" ]]
then then
printf "$COL_YELLOW" "** libssl.so.1.1 library missing, installing now" printf "$COL_YELLOW" "** libssl.so.1.1 library missing, installing now"
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
apt update apt update
apt install -y libssl1.1 apt install -y libssl1.1
else
printf "$COL_RED" "** libssl.so.1.1 library missing, and no special fix for distro: $distro"
fi fi
fi fi