Update rhel.sh

This commit is contained in:
midoks
2023-07-15 15:50:35 +08:00
parent f62af00fb7
commit 60ddb13f8e
+4 -2
View File
@@ -103,11 +103,12 @@ if [ ! -f /usr/sbin/firewalld ];then
systemctl restart firewalld
fi
echo "firewall open common port start"
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
@@ -121,8 +122,9 @@ if [ -f /usr/sbin/firewalld ];then
# firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
firewall-cmd --reload
echo "firewall open common port end"
fi
echo "firewall open common port end"
$PKGMGR install -y epel-release
if [ ! -z "$cn" ];then