Skip to content

Commit

Permalink
moved OS check into same script
Browse files Browse the repository at this point in the history
  • Loading branch information
serverok committed Jun 24, 2023
1 parent 7025d78 commit 1c20321
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions squid-add-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions squid-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions squid3-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c20321

Please sign in to comment.