fix disable selinux on deploy host

pull/1318/head
gjmzj 2023-08-23 20:59:48 +08:00
parent cb1644eb1b
commit ead48d8ea2
1 changed files with 2 additions and 2 deletions

4
ezdown
View File

@ -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