This commit is contained in:
2017-10-23 17:04:15 +08:00
parent 4512994566
commit 37a5cec3bf
2 changed files with 15 additions and 14 deletions

View File

@@ -1,16 +1,4 @@
#!/bin/bash
# Checking
echo "Checking..."
if [ -n "`grep 'Aliyun Linux release' /etc/issue`" -o -e /etc/redhat-release ];then
OS=CentOS
[ -n "`grep ' 7\.' /etc/redhat-release`" ] && CentOS_RHEL_version=7
fi
if [ $OS != 'CentOS' ] || [ $CentOS_RHEL_version != '7' ];then
echo "${CFAILURE}Error: This script only support CentOS 7${CEND}";
kill -9 $$
fi
# Close SELINUX
setenforce 0