From ecd987fa37dd753374232df94e9d1df34492f222 Mon Sep 17 00:00:00 2001 From: Gabriel Gouvine Date: Wed, 16 Aug 2023 08:24:45 +0200 Subject: [PATCH] Fix directory detection for alliance installer --- bootstrap/allianceInstaller.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bootstrap/allianceInstaller.sh b/bootstrap/allianceInstaller.sh index d9e27e68..72f5c65e 100755 --- a/bootstrap/allianceInstaller.sh +++ b/bootstrap/allianceInstaller.sh @@ -7,10 +7,16 @@ # arch="Linux.el7_64" #fi - arch="Linux.el9" - if [ "`hostname -s`" == "bop" ]; then + arch_str=$((uname -srm)) + if [[ ${arch_str} =~ Linux.*(el9|al9).*x86_64 ]]; then + echo "Building for RHEL 9" + arch="Linux.el9" + elif [[ ${arch_str} =~ Linux.*(el7|al7).*x86_64 ]]; then echo "Building for RHEL 7" - arch="Linux.el7_64" + arch="Linux.el7" + else + echo "Building for Generic Linux" + arch="Linux.x86_64" fi nightly=""