Add bop detection on allianceInstaller.sh.

This commit is contained in:
Jean-Paul Chaput 2023-03-10 22:20:09 +01:00
parent b4fe1a3686
commit 03c424f1a1
1 changed files with 14 additions and 1 deletions

View File

@ -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