Additional test for CentOS version
This commit is contained in:
parent
694a006102
commit
e814bb673a
@ -29,6 +29,11 @@ if [ ! -f /etc/redhat-release ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [ "$(uname -m)" != "x86_64" ]; then
|
||||||
echo "Sorry, this script only supports 64-bit CentOS/RHEL."
|
echo "Sorry, this script only supports 64-bit CentOS/RHEL."
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user