firewalld

This commit is contained in:
qiaofeng1227 2023-07-21 09:17:40 +08:00
parent d2f431ab45
commit b41ea1cc07

View file

@ -134,7 +134,7 @@ echo "Prepare to install Tools ..."
if [ "$os_type" == 'CentOS' ] || [ "$os_type" == 'CentOS Stream' ] || [ "$os_type" == 'Fedora' ] || [ "$os_type" == 'OracleLinux' ] || [ "$os_type" == 'Redhat' ];then
sudo yum update -y 1>/dev/null 2>&1
sudo yum install git curl wget yum-utils jq firewalld bc unzip -y 1>/dev/null 2>&1
sudo yum install git curl wget yum-utils jq bc unzip -y 1>/dev/null 2>&1
fi
@ -164,11 +164,7 @@ if [ "$os_type" == 'Ubuntu' ] || [ "$os_type" == 'Debian' ] ;then
else
sudo apt install jq -y
fi
if command -v firewalld > /dev/null;then
echo "firewalld installed ..."
else
sudo apt install firewalld -y
fi
if command -v bc > /dev/null;then
echo "bc installed ..."
else
@ -516,7 +512,7 @@ EditMenu(){
echo "Start to Edit Cockpit Menu ..."
cp -r /data/apps/websoft9/cockpit/menu_override/* /etc/cockpit
cd /usr/share/cockpit/systemd && rm -rf services.js.gz services.html.gz services.css.gz services.js services.html services.css
sudo systemctl stop firewalld
echo "---------------------------------- Install success! you can install a app by websoft9's appstore -------------------------------------------------------"
}