Commit 3abe7fdd authored by Fabio Hernandez's avatar Fabio Hernandez
Browse files

Limit check of preconfigured CernVM FS client to lsst.in2p3.fr

parent 1c0be549
...@@ -24,9 +24,10 @@ fi ...@@ -24,9 +24,10 @@ fi
# Configure CernVM FS # Configure CernVM FS
# WARNING: make sure we don't overwrite any existing configuration, different # WARNING: make sure we don't overwrite any existing configuration, different
# than ours # than ours
if [ -e /etc/cvmfs/default.local ]; then localConfig="/etc/cvmfs/default.local"
diff "/etc/cvmfs/default.local" "default.local" > /dev/null 2>&1 if [ -e ${localConfig} ]; then
if [ $? -ne 0 ]; then repos=`grep CVMFS_REPOSITORIES ${localConfig} | sed s/CVMFS_REPOSITORIES=//g`
if [ -n $repos ] && [ $repos != "lsst.in2p3.fr" ]; then
echo "CernVM FS seems to be already configured in this machine in a potentially incompatible way" echo "CernVM FS seems to be already configured in this machine in a potentially incompatible way"
echo "see file /etc/cvmfs/default.local" echo "see file /etc/cvmfs/default.local"
exit 1 exit 1
......
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