Update cloudflare.sh

This commit is contained in:
Tommy
2021-10-14 02:39:23 -04:00
committed by GitHub
parent 38339abd16
commit e8481c35bd
+3 -3
View File
@@ -14,8 +14,8 @@ get_ports(){
}
output "Cloudflare IPWhitelist Script"
output "Copyright © 2020 Thien Tran <contact@thientran.io>."
output "Support: https://thientran.io/discord"
output "Copyright © 2021 Thien Tran <contact@tommytran.io>."
output "Support: https://matrix.to/#/#tommytran732:matrix.org"
output ""
output "Enter the list of ports you want opened, separated by a space."
@@ -63,7 +63,7 @@ if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
yes | ufw enable
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "opensuse" ]; then
if [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "centos" ]; then
if [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "opensuse" ]; then
yum -y install firewalld wget
elif [ "$lsb_dist" = "opensuse" ]; then
zypper in firewalld wget -y