Jelajahi Sumber

fix: v2.2.0 firewall

jonssonyan 2 tahun lalu
induk
melakukan
837e596a03

+ 1 - 1
archive/install_script_v2.1.5.sh

@@ -292,7 +292,7 @@ install_docker() {
     # 关闭防火墙
     if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
       if [[ "${release}" == "centos" ]]; then
-        systemctl stop firewalld.service && systemctl disable firewalld.service
+        systemctl disable firewalld
       elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
         sudo ufw disable
       fi

+ 1 - 1
archive/install_script_v2.1.6.sh

@@ -292,7 +292,7 @@ install_docker() {
     # 关闭防火墙
     if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
       if [[ "${release}" == "centos" ]]; then
-        systemctl stop firewalld.service && systemctl disable firewalld.service
+        systemctl disable firewalld
       elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
         sudo ufw disable
       fi

+ 1 - 1
archive/install_script_v2.1.7.sh

@@ -292,7 +292,7 @@ install_docker() {
     # 关闭防火墙
     if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
       if [[ "${release}" == "centos" ]]; then
-        systemctl stop firewalld.service && systemctl disable firewalld.service
+        systemctl disable firewalld
       elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
         sudo ufw disable
       fi

+ 1 - 1
archive/install_script_v2.1.8.sh

@@ -293,7 +293,7 @@ install_docker() {
     # 关闭防火墙
     if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
       if [[ "${release}" == "centos" ]]; then
-        systemctl stop firewalld.service && systemctl disable firewalld.service
+        systemctl disable firewalld
       elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
         sudo ufw disable
       fi

+ 1 - 1
archive/install_script_v2.2.0.sh

@@ -294,7 +294,7 @@ install_docker() {
     # turn off firewall
     if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
       if [[ "${release}" == "centos" ]]; then
-        systemctl stop firewalld.service && systemctl disable firewalld.service
+        systemctl disable firewalld
       elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
         sudo ufw disable
       fi

+ 1 - 1
install_script.sh

@@ -294,7 +294,7 @@ install_docker() {
     # turn off firewall
     if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
       if [[ "${release}" == "centos" ]]; then
-        systemctl stop firewalld.service && systemctl disable firewalld.service
+        systemctl disable firewalld
       elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
         sudo ufw disable
       fi

+ 5 - 1
install_script_standalone.sh

@@ -193,7 +193,11 @@ install_docker() {
 
     # turn off firewall
     if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
-      systemctl stop firewalld.service && systemctl disable firewalld.service
+      if [[ "${release}" == "centos" ]]; then
+        systemctl disable firewalld
+      elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
+        sudo ufw disable
+      fi
     fi
 
     # set time zone