almalinux support

This commit is contained in:
Yujin Boby
2023-07-15 23:19:44 +05:30
parent 6cdd4ba5e3
commit 06d516a415
2 changed files with 8 additions and 1 deletions

View File

@@ -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

View File

@@ -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