1
0
mirror of synced 2024-11-25 06:16:07 +03:00

Additional test for CentOS version

This commit is contained in:
Lin Song 2016-01-08 09:02:15 -06:00
parent 694a006102
commit e814bb673a

View File

@ -29,6 +29,11 @@ if [ ! -f /etc/redhat-release ]; then
exit 1
fi
if grep -qs -v -e "release 6" -e "release 7" /etc/redhat-release; then
echo "Sorry, this script only supports versions 6 and 7 of CentOS/RHEL."
exit 1
fi
if [ "$(uname -m)" != "x86_64" ]; then
echo "Sorry, this script only supports 64-bit CentOS/RHEL."
exit 1