mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-06 11:58:41 +02:00
adaptation of scripts to run on sf-daq-4
This commit is contained in:
committed by
Data Backend account
parent
344ea97008
commit
fe39841df9
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# needed, otherwise executing with Ansible won't work
|
||||
# see: https://github.com/conda/conda/issues/7267
|
||||
unset SUDO_UID SUDO_GID SUDO_USER
|
||||
|
||||
if [ ! -d /home/dbe/git ]; then
|
||||
echo "No git repo found, cloning it..."
|
||||
mkdir /home/dbe/git
|
||||
fi
|
||||
|
||||
REPO=sf_daq_buffer
|
||||
if [ ! -d /home/dbe/git/${REPO} ]; then
|
||||
cd /home/dbe/git && git clone https://github.com/paulscherrerinstitute/${REPO}.git
|
||||
|
||||
source /opt/rh/devtoolset-9/enable
|
||||
cd /home/dbe/git/${REPO} && mkdir -p build && cd build/ && cmake3 .. && make
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user