From c4fda65a7586fe022c8a0d31c9dcb79d334c2d40 Mon Sep 17 00:00:00 2001 From: TommyTran732 <57488583+tommytran732@users.noreply.github.com> Date: Thu, 2 Jan 2020 17:21:21 -0500 Subject: [PATCH] Update cloudflare.sh --- cloudflare.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cloudflare.sh b/cloudflare.sh index 8b13789..2199577 100644 --- a/cloudflare.sh +++ b/cloudflare.sh @@ -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