add architecture check and force using 64bit OS version

This commit is contained in:
ronivay
2021-01-25 09:27:45 +02:00
parent 4c9a25acbf
commit 8d2e1e3791

View File

@@ -812,6 +812,11 @@ function RollBackInstallation {
function CheckOS { function CheckOS {
if [[ $(uname -m) != "x86_64" ]]; then
printfail "Installation only supports 64bit OS. You seem to be running architecture: $(uname -m)"
exit 1
fi
if [ -f /etc/centos-release ] ; then if [ -f /etc/centos-release ] ; then
OSVERSION=$(grep -Eo "[0-9]" /etc/centos-release | head -1) OSVERSION=$(grep -Eo "[0-9]" /etc/centos-release | head -1)
OSNAME="CentOS" OSNAME="CentOS"