mirror of
https://github.com/serverok/squid-proxy-installer.git
synced 2026-04-02 02:28:30 +00:00
moved OS check into same script
This commit is contained in:
@@ -57,8 +57,4 @@ elif [ $SOK_OS == "centos7" ]; then
|
||||
systemctl reload squid
|
||||
elif [ $SOK_OS == "centos8" ]; then
|
||||
systemctl reload squid
|
||||
else
|
||||
echo "OS NOT SUPPORTED.\n"
|
||||
echo "Contact https://serverok.in/contact to add support for your OS."
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
@@ -65,10 +65,6 @@ elif [ $SOK_OS == "centos7" ]; then
|
||||
elif [ $SOK_OS == "centos8" ]; then
|
||||
yum remove squid -y
|
||||
/bin/rm -rf /etc/squid/
|
||||
else
|
||||
echo "OS NOT SUPPORTED.\n"
|
||||
echo "Contact https://serverok.in/contact to add support for your OS."
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
rm -f /usr/local/bin/squid-add-user > /dev/null 2>&1
|
||||
|
||||
@@ -170,10 +170,6 @@ elif [ $SOK_OS == "centos8" ]; then
|
||||
systemctl restart squid
|
||||
firewall-cmd --zone=public --permanent --add-port=3128/tcp
|
||||
firewall-cmd --reload
|
||||
else
|
||||
echo "OS NOT SUPPORTED.\n"
|
||||
echo "Contact https://serverok.in/contact to add support for your OS."
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user