Skip to content

Commit 837e596

Browse files
committed
fix: v2.2.0 firewall
1 parent 5f3a363 commit 837e596

7 files changed

+11
-7
lines changed

archive/install_script_v2.1.5.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ install_docker() {
292292
# 关闭防火墙
293293
if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
294294
if [[ "${release}" == "centos" ]]; then
295-
systemctl stop firewalld.service && systemctl disable firewalld.service
295+
systemctl disable firewalld
296296
elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
297297
sudo ufw disable
298298
fi

archive/install_script_v2.1.6.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ install_docker() {
292292
# 关闭防火墙
293293
if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
294294
if [[ "${release}" == "centos" ]]; then
295-
systemctl stop firewalld.service && systemctl disable firewalld.service
295+
systemctl disable firewalld
296296
elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
297297
sudo ufw disable
298298
fi

archive/install_script_v2.1.7.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ install_docker() {
292292
# 关闭防火墙
293293
if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
294294
if [[ "${release}" == "centos" ]]; then
295-
systemctl stop firewalld.service && systemctl disable firewalld.service
295+
systemctl disable firewalld
296296
elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
297297
sudo ufw disable
298298
fi

archive/install_script_v2.1.8.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ install_docker() {
293293
# 关闭防火墙
294294
if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
295295
if [[ "${release}" == "centos" ]]; then
296-
systemctl stop firewalld.service && systemctl disable firewalld.service
296+
systemctl disable firewalld
297297
elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
298298
sudo ufw disable
299299
fi

archive/install_script_v2.2.0.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ install_docker() {
294294
# turn off firewall
295295
if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
296296
if [[ "${release}" == "centos" ]]; then
297-
systemctl stop firewalld.service && systemctl disable firewalld.service
297+
systemctl disable firewalld
298298
elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
299299
sudo ufw disable
300300
fi

install_script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ install_docker() {
294294
# turn off firewall
295295
if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
296296
if [[ "${release}" == "centos" ]]; then
297-
systemctl stop firewalld.service && systemctl disable firewalld.service
297+
systemctl disable firewalld
298298
elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
299299
sudo ufw disable
300300
fi

install_script_standalone.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ install_docker() {
193193

194194
# turn off firewall
195195
if [[ "$(firewall-cmd --state 2>/dev/null)" == "running" ]]; then
196-
systemctl stop firewalld.service && systemctl disable firewalld.service
196+
if [[ "${release}" == "centos" ]]; then
197+
systemctl disable firewalld
198+
elif [[ "${release}" == "debian" || "${release}" == "ubuntu" ]]; then
199+
sudo ufw disable
200+
fi
197201
fi
198202

199203
# set time zone

0 commit comments

Comments
 (0)