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