Update rhel.sh

pull/424/head
midoks 2 years ago
parent f62af00fb7
commit 60ddb13f8e
  1. 6
      scripts/install/rhel.sh

@ -103,11 +103,12 @@ if [ ! -f /usr/sbin/firewalld ];then
systemctl restart firewalld systemctl restart firewalld
fi fi
echo "firewall open common port start"
if [ -f /usr/sbin/firewalld ];then if [ -f /usr/sbin/firewalld ];then
# look # look
# firewall-cmd --list-all # firewall-cmd --list-all
# systemctl status firewalld # systemctl status firewalld
echo "firewall open common port start"
if [ "$SSH_PORT" != "" ];then if [ "$SSH_PORT" != "" ];then
firewall-cmd --permanent --zone=public --add-port=${SSH_PORT}/tcp firewall-cmd --permanent --zone=public --add-port=${SSH_PORT}/tcp
else else
@ -121,8 +122,9 @@ if [ -f /usr/sbin/firewalld ];then
# firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp # firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
firewall-cmd --reload firewall-cmd --reload
echo "firewall open common port end"
fi fi
echo "firewall open common port end"
$PKGMGR install -y epel-release $PKGMGR install -y epel-release
if [ ! -z "$cn" ];then if [ ! -z "$cn" ];then

Loading…
Cancel
Save