pull/321/head
midoks 2 years ago
parent a04f59a3aa
commit 08b3738cfd
  1. 6
      scripts/install.sh
  2. 2
      scripts/install/rhel.sh

@ -28,16 +28,16 @@ elif grep -Eq "openSUSE" /etc/*-release; then
zypper install cron wget curl zip unzip zypper install cron wget curl zip unzip
elif grep -Eq "FreeBSD" /etc/*-release; then elif grep -Eq "FreeBSD" /etc/*-release; then
OSNAME='freebsd' OSNAME='freebsd'
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/redhat-release; then elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
OSNAME='rhel' OSNAME='rhel'
yum install -y wget curl zip unzip tar crontabs yum install -y wget curl zip unzip tar crontabs
elif grep -Eqi "Fedora" /etc/issue || grep -Eq "Fedora" /etc/*-release; then elif grep -Eqi "Fedora" /etc/issue || grep -Eq "Fedora" /etc/*-release; then
OSNAME='fedora' OSNAME='fedora'
yum install -y wget curl zip unzip tar crontabs yum install -y wget curl zip unzip tar crontabs
elif grep -Eqi "Rocky" /etc/issue || grep -Eq "Rocky" /etc/redhat-release; then elif grep -Eqi "Rocky" /etc/issue || grep -Eq "Rocky" /etc/*-release; then
OSNAME='rhel' OSNAME='rhel'
yum install -y wget curl zip unzip tar crontabs yum install -y wget curl zip unzip tar crontabs
elif grep -Eqi "AlmaLinux" /etc/issue || grep -Eq "AlmaLinux" /etc/redhat-release; then elif grep -Eqi "AlmaLinux" /etc/issue || grep -Eq "AlmaLinux" /etc/*-release; then
OSNAME='rhel' OSNAME='rhel'
yum install -y wget curl zip unzip tar crontabs yum install -y wget curl zip unzip tar crontabs
elif grep -Eqi "Amazon Linux" /etc/issue || grep -Eq "Amazon Linux" /etc/*-release; then elif grep -Eqi "Amazon Linux" /etc/issue || grep -Eq "Amazon Linux" /etc/*-release; then

@ -28,6 +28,7 @@ if [ ! -d /root/.acme.sh ];then
curl https://get.acme.sh | sh curl https://get.acme.sh | sh
fi fi
echo "iptables wrap start"
if [ -f /usr/sbin/iptables ];then if [ -f /usr/sbin/iptables ];then
$PKGMGR install -y iptables-services $PKGMGR install -y iptables-services
@ -55,6 +56,7 @@ if [ -f /usr/sbin/iptables ];then
echo "iptables end" echo "iptables end"
fi fi
echo "iptables wrap start"
if [ ! -f /usr/sbin/iptables ];then if [ ! -f /usr/sbin/iptables ];then
$PKGMGR install firewalld -y $PKGMGR install firewalld -y

Loading…
Cancel
Save