-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-salrun.sh
executable file
·31 lines (23 loc) · 1.09 KB
/
install-salrun.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/env bash
# This is the recipe to install SAL/OpenSplice from rpms
set -e
# yum rpm extras
yum -y install git gcc-c++ make patch wget
# Add the lsst-ts repo to /etc and install the OSPL rpm
cp -pv lsst-ts.repo /etc/yum.repos.d
# Create the lsst-ts-nexus-private.repo using USER/PASS stored and environmental vars.
envsubst < lsst-ts-nexus-private-template.repo > /etc/yum.repos.d/lsst-ts-nexus-private.repo
# Remove rpms first
rpmlist=`yum list installed | grep @lsst-ts | awk '{print $1}'`
echo "Removing: $rpmlist"
yum -y remove $rpmlist
# Remove OpenSplice before installation
yum -y remove OpenSpliceDDS
yum -y install OpenSpliceDDS-$OSPL_RPM_VERSION
export OSPL_HOME=/opt/OpenSpliceDDS/V${OSPL_VERSION}/HDE/x86_64.linux
# Remove the private repo information
rm /etc/yum.repos.d/lsst-ts-nexus-private.repo
## Get the setup conf
echo "export OSPL_HOME=/opt/OpenSpliceDDS/V${OSPL_VERSION}/HDE/x86_64.linux" > $INSTALL_PATH/setup_SAL.env
echo "export OSPL_URI=file://${INSTALL_PATH}/ts_ddsconfig/config/ospl-shmem.xml" >> $INSTALL_PATH/setup_SAL.env
cat setup_SAL.env >> $INSTALL_PATH/setup_SAL.env