mirror of https://github.com/easzlab/kubeasz.git
fix disable selinux on deploy host
parent
cb1644eb1b
commit
ead48d8ea2
4
ezdown
4
ezdown
|
@ -240,8 +240,8 @@ ${c}
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -e /etc/centos-release || -e /etc/redhat-release ]]; then
|
if [[ -f /etc/selinux/config ]]; then
|
||||||
logger debug "turn off selinux in CentOS/Redhat"
|
logger debug "turn off selinux on host"
|
||||||
getenforce|grep Disabled || setenforce 0
|
getenforce|grep Disabled || setenforce 0
|
||||||
sed -i 's/^SELINUX=.*$/SELINUX=disabled/g' /etc/selinux/config
|
sed -i 's/^SELINUX=.*$/SELINUX=disabled/g' /etc/selinux/config
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue