Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 7c611de2 authored by Fabio Hernandez's avatar Fabio Hernandez
Browse files

Provide installation script

parent 90ec79df
# Configure this machine as a CernVM FS client to access LSST
# software repository served by CC-IN2P3.
# This script can be run multiple times.
# More information:
# We must run as 'root'
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit 1
# Exit on error
set -e
# Run CernVM FS configuration
if [ ! -x /usr/bin/cvmfs_config ]; then
echo "Could not find CernVM FS configuration tool"
exit 1
/usr/bin/cvmfs_config setup
# Configure CernVM FS
# WARNING: make sure we don't overwrite any existing configuration, different
# than ours
if [ -e /etc/cvmfs/default.local ]; then
existing=`md5sum /etc/cvmfs/default.local | cut -b1-32`
ours=`md5sum default.local | cut -b1-32`
if [ "$existing" != "$ours" ]; then
echo "CernVM FS is already configured in this machine in a potentially incompatible way"
echo "see file /etc/cvmfs/default.local"
exit 1
cp default.local /etc/cvmfs/default.local
chmod 0644 /etc/cvmfs/default.local
# Configure the LSST repository and store its public key
cp /etc/cvmfs/config.d/
chmod 0644 /etc/cvmfs/config.d/
cp /etc/cvmfs/keys/
chmod 0444 /etc/cvmfs/keys/
# Check this configuration
result=`/usr/bin/cvmfs_config chksetup`
if [ "$result" != "OK" ]; then
echo "There was an error checking your CernVM FS configuration:"
echo $result
exit 1
# Check that we can reach the CernVM FS server
curl -s --proxy $CVMFS_HTTP_PROXY --head $CVMFS_SERVER_URL > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Cannot reach repository proxy server: $CVMFS_HTTP_PROXY"
exit 1
# Restart autofs
service autofs restart > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Could not restart autofs service"
exit 1
# Done
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment