moved OS check into same script

This commit is contained in:
Yujin Boby
2023-06-24 11:35:43 +05:30
parent 7025d78b0a
commit 1c20321985
3 changed files with 0 additions and 12 deletions

View File

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

View File

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

View File

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