From 03c424f1a14951e5749108cba7fb6223c151ba2f Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 10 Mar 2023 22:20:09 +0100 Subject: [PATCH] Add bop detection on allianceInstaller.sh. --- bootstrap/allianceInstaller.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/bootstrap/allianceInstaller.sh b/bootstrap/allianceInstaller.sh index 448cc563..0c3526ed 100755 --- a/bootstrap/allianceInstaller.sh +++ b/bootstrap/allianceInstaller.sh @@ -1,12 +1,25 @@ #!/bin/bash + #. /etc/*-release + #arch="Linux.el9" + #if [ "`echo ${VERSION} | cut -c 1`" == "7" ]; then + # echo "Building for RHEL 7" + # arch="Linux.el7_64" + #fi + + arch="Linux.el9" + if [ "`hostname -s`" == "bop" ]; then + echo "Building for RHEL 7" + arch="Linux.el7_64" + fi + nightly="" if [[ "`pwd`" =~ /nightly/ ]]; then nightly="/nightly" fi srcDir=${HOME}${nightly}/coriolis-2.x/src/alliance/alliance/src - commonRoot=${HOME}${nightly}/coriolis-2.x/Linux.el9/Release.Shared + commonRoot=${HOME}${nightly}/coriolis-2.x/${arch}/Release.Shared buildDir=${commonRoot}/build installDir=${commonRoot}/install