Skip to content

Commit

Permalink
fix disable selinux on deploy host
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Aug 23, 2023
1 parent cb1644e commit ead48d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ezdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ead48d8

Please sign in to comment.