Update cloudflare.sh

This commit is contained in:
TommyTran732
2020-01-02 17:21:21 -05:00
committed by GitHub
parent d5e5d98403
commit c4fda65a75
+8
View File
@@ -1 +1,9 @@
#!/bin/bash
if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
apt -y install ufw
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "centos" ]; then
yum -y install firewalld
else
output "Unsupported distribution. This script only supports Fedora, RHEL, CentOS, Ubuntu, and Debian."
fi