setup scripts for retrieval machine

This commit is contained in:
Dmitry Ozerov
2020-10-14 15:10:53 +02:00
committed by Data Backend account
parent aac21f5d5e
commit 88f7e8a7df
6 changed files with 119 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/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