📣 An issue occured with the embedded container registry on October 25 2021, between 10:30 and 12:10 (UTC+2). Any persisting issues should be reported to CC-IN2P3 Support. 🐛

Unverified Commit ed11ae76 authored by Fabio Hernandez's avatar Fabio Hernandez Committed by GitHub
Browse files

Merge pull request #10 from crosset/crosset-cvmfs_config-path

Check for cvmfs_config path
parents b8ea9e66 d559ea6b
......@@ -5,6 +5,8 @@
# This script can be run multiple times.
# More information: https://github.com/airnandez/lsst-cvmfs
CVMFS_CONFIG=$(command -v cvmfs_config)
# We must run as 'root'
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
......@@ -12,11 +14,11 @@ if [ "$EUID" -ne 0 ]; then
fi
# Run CernVM FS configuration
if [ ! -x /usr/bin/cvmfs_config ]; then
if [ ! -x $CVMFS_CONFIG ]; then
echo "Could not find CernVM FS configuration tool"
exit 1
fi
/usr/bin/cvmfs_config setup
$CVMFS_CONFIG setup
if [ $? -ne 0 ]; then
exit 1
fi
......@@ -52,7 +54,7 @@ if [ "$thisOS" == "Linux" ]; then
mkdir -p /etc/cvmfs/domain.d
# Use 'cvmfs_config' to check the configuration
result=`/usr/bin/cvmfs_config chksetup`
result=`$CVMFS_CONFIG chksetup`
if [ "$result" != "OK" ]; then
echo "There was an error checking your CernVM FS configuration:"
echo $result
......
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