kubez-ansible
kubez-ansible copied to clipboard
setup_env.sh中关闭Ubuntu ufw问题
if [[ "$(systemctl is-enabled ufw)" == "active" ]]; then
systemctl disable ufw
fi
if [[ "$(systemctl is-active ufw)" == "enabled" ]]; then
systemctl stop ufw
fi
systemctl is-enabled ufw
返回值应该判断是不是enabled
吧,systemctl is-active ufw
同理