Add openssl and squid installation logic for rhel9

This commit is contained in:
Teja Swaroop Pothala 2024-12-14 07:07:24 +05:30
parent f41f30911d
commit 3b8178b291
No known key found for this signature in database
GPG Key ID: E5F3829663E6A4B2

View File

@ -6,6 +6,8 @@ ARCH=$(arch | sed 's/aarch64/arm64/g' | sed 's/x86_64/amd64/g')
if [[ "${DISTRO}" == @(centos|oracle7|oracle8|oracle9|fedora37|fedora38|fedora39|fedora40|almalinux8|almalinux9|rockylinux8|rockylinux9) ]]; then
dnf install -y openssl xkbcomp
rm -f /etc/X11/xinit/xinitrc
if [[ "${DISTRO}" == "rhel9" ]]; then
dnf install -y openssl
elif [[ "${DISTRO}" == "alpine" ]]; then
apk add --no-cache openssl
elif [ "${DISTRO}" == "opensuse" ]; then
@ -26,7 +28,7 @@ else
fi
# Update squid conf with user info
if [[ "${DISTRO}" == @(centos|oracle7|oracle8|oracle9|fedora37|fedora38|fedora39|fedora40|almalinux8|almalinux9|rockylinux8|rockylinux9|alpine) ]]; then
if [[ "${DISTRO}" == @(centos|oracle7|oracle8|oracle9|fedora37|fedora38|fedora39|fedora40|almalinux8|almalinux9|rockylinux8|rockylinux9|alpine|rhel9) ]]; then
useradd --system --shell /usr/sbin/nologin --home-dir /bin proxy
elif [ "${DISTRO}" == "opensuse" ]; then
useradd --system --shell /usr/sbin/nologin --home-dir /bin proxy