Skip to content
Snippets Groups Projects
Commit f9f2dac3 authored by Volodymyr Yurchenko's avatar Volodymyr Yurchenko Committed by Cedric CAFFY
Browse files

Checkout CTA sources during system bootstrap

Newly created user should be able to immediately run bootstrapCTA.sh. Therefore CTA repo should already be present in a home directory
parent 15b01d94
Branches
Tags
No related merge requests found
......@@ -2,8 +2,7 @@
set -x
echo Getting CTA sources...
( cd ~ ; git clone https://:@gitlab.cern.ch:8443/cta/CTA.git; cd CTA ; git submodule update --init --recursive)
echo Preparing CTA sources...
cat > ~/CTA/.git/hooks/post-checkout << EOFGitHook
#!/bin/sh
cd `git rev-parse --show-toplevel`
......
......@@ -32,3 +32,8 @@ echo Installing Oracle instant client
sudo wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
sudo wget https://yum.oracle.com/public-yum-ol7.repo -O /etc/yum.repos.d/public-yum-ol7.repo
sudo yum install -y oracle-instantclient19.3-basic.x86_64 oracle-instantclient19.3-devel.x86_64 --enablerepo=ol7_oracle_instantclient
echo "Getting CTA sources for $CTAUSER..."
sudo -u $CTAUSER bash -c 'cd ~ ; git clone https://gitlab.cern.ch/cta/CTA.git; cd CTA ; git submodule update --init --recursive'
echo System bootstrap finished!
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment