From 06d516a41555674f4649cd3e37344d7e38036992 Mon Sep 17 00:00:00 2001 From: Yujin Boby Date: Sat, 15 Jul 2023 23:19:44 +0530 Subject: [PATCH] almalinux support --- README.md | 1 + squid-add-user.sh | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c80d759..c0e37c8 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Auto install Squid 3 proxy on following linux OS. * Ubuntu 14.04, 16.04, 18.04, 20.04, 22.04 * Debian 8, 9, 10, 11 * CentOS 7, 8 +* AlmaLinux 8, 9 ## Install Squid diff --git a/squid-add-user.sh b/squid-add-user.sh index 1df9be8..d6027e9 100644 --- a/squid-add-user.sh +++ b/squid-add-user.sh @@ -35,6 +35,12 @@ fi SOK_OS=$(/usr/local/bin/sok-find-os) +if [ "$SOK_OS" == "ERROR" ]; then + echo "OS NOT SUPPORTED.\n" + echo "Contact https://serverok.in/contact to add support for your OS." + exit 1; +fi + if [ $SOK_OS == "ubuntu2204" ]; then systemctl reload squid elif [ $SOK_OS == "ubuntu2004" ]; then @@ -55,6 +61,6 @@ elif [ $SOK_OS == "debian11" ]; then systemctl reload squid elif [ $SOK_OS == "centos7" ]; then systemctl reload squid -elif [ $SOK_OS == "centos8" ]; then +elif [ "$SOK_OS" == "centos8" ] || [ "$SOK_OS" == "almalinux8" ] || [ "$SOK_OS" == "almalinux9" ]; then systemctl reload squid fi