mirror of
https://github.com/serverok/squid-proxy-installer.git
synced 2026-04-02 18:49:50 +00:00
almalinux support
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user