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
|
||||
fi
|
||||
|
||||
if [[ -e /etc/centos-release || -e /etc/redhat-release ]]; then
|
||||
logger debug "turn off selinux in CentOS/Redhat"
|
||||
if [[ -f /etc/selinux/config ]]; then
|
||||
logger debug "turn off selinux on host"
|
||||
getenforce|grep Disabled || setenforce 0
|
||||
sed -i 's/^SELINUX=.*$/SELINUX=disabled/g' /etc/selinux/config
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue