diff --git a/README.md b/README.md index 65e0a77..441ccf3 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ https://serverok.in/squid Auto install Squid 3 proxy on following linux OS. * Ubuntu 24.04, 22.04, 20.04, 18.04 -* Debian 12, 11, 10, 9, 8 +* Debian 13, 12, 11, 10, 9, 8 * CentOS 8 * CentOS Steam 9, 8 * AlmaLinux 9, 8 diff --git a/sok-find-os.sh b/sok-find-os.sh index f8f49c4..142a812 100755 --- a/sok-find-os.sh +++ b/sok-find-os.sh @@ -32,6 +32,8 @@ elif cat /etc/os-release | grep PRETTY_NAME | grep "bullseye" > /dev/null; then echo "debian11" elif cat /etc/os-release | grep PRETTY_NAME | grep "bookworm" > /dev/null; then echo "debian12" +elif cat /etc/os-release | grep PRETTY_NAME | grep "trixie" > /dev/null; then + echo "debian13" elif cat /etc/os-release | grep PRETTY_NAME | grep "CentOS Linux 7" > /dev/null; then echo "centos7" elif cat /etc/os-release | grep PRETTY_NAME | grep "CentOS Linux 8" > /dev/null; then diff --git a/squid3-install.sh b/squid3-install.sh index 0d69588..e311645 100644 --- a/squid3-install.sh +++ b/squid3-install.sh @@ -179,6 +179,18 @@ elif [ $SOK_OS == "debian12" ]; then fi systemctl enable squid systemctl restart squid +elif [ $SOK_OS == "debian13" ]; then + # OS = Debian GNU/Linux 12 (bookworm) + /bin/rm -rf /etc/squid + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid > /dev/null 2>&1 + touch /etc/squid/passwd + /usr/bin/wget -q --no-check-certificate -O /etc/squid/conf.d/serverok.conf https://raw.githubusercontent.com/serverok/squid-proxy-installer/master/conf/debian12.conf + if [ -f /sbin/iptables ]; then + /sbin/iptables -I INPUT -p tcp --dport 3128 -j ACCEPT + fi + systemctl enable squid + systemctl restart squid elif [ $SOK_OS == "centos7" ]; then echo "CentOS Linux 7 reached End of Life (EOL) nn June 30, 2024. Please use to newer OS" exit 1