From f62af00fb747d1544301aaeb487b723cb2153d1c Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 15 Jul 2023 15:49:28 +0800 Subject: [PATCH] Update rhel.sh --- scripts/install/rhel.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install/rhel.sh b/scripts/install/rhel.sh index a7152d780..577c7fe64 100644 --- a/scripts/install/rhel.sh +++ b/scripts/install/rhel.sh @@ -107,7 +107,7 @@ if [ -f /usr/sbin/firewalld ];then # look # firewall-cmd --list-all # systemctl status firewalld - + echo "firewall open common port start" if [ "$SSH_PORT" != "" ];then firewall-cmd --permanent --zone=public --add-port=${SSH_PORT}/tcp else @@ -120,7 +120,8 @@ if [ -f /usr/sbin/firewalld ];then # firewall-cmd --permanent --zone=public --add-port=3306/tcp # firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp - firewall-cmd --reload + firewall-cmd --reload + echo "firewall open common port end" fi $PKGMGR install -y epel-release