fix selinux setting in tools/easzup

pull/641/head
gjmzj 2019-06-23 07:54:30 +08:00
parent 49f368aed1
commit f5cafff5dd
1 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,12 @@ EOF
}
EOF
if [[ -e /etc/centos-release || -e /etc/redhat-release ]]; then
echo "[INFO] turn off selinux in CentOS/Redhat"
setenforce 0
echo "SELINUX=disabled" > /etc/selinux/config
fi
echo "[INFO] enable and start docker"
systemctl enable docker
systemctl daemon-reload && systemctl restart docker