Skip to content

Commit 2660019

Browse files
authored
Only mount repo if not already exists
1 parent a407b3f commit 2660019

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup-cvmfs.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ if [ "$(uname)" == "Linux" ]; then
8181
# Mount CVMFS repositories (in case no autofs)
8282
for repo in $(echo ${CVMFS_REPOSITORIES} | sed "s/,/ /g")
8383
do
84-
sudo mount -t cvmfs ${repo} /cvmfs/${repo}
84+
if [ ! -d /cvmfs/${repo} ]; then
85+
sudo mount -t cvmfs ${repo} /cvmfs/${repo}
86+
fi
8587
done
8688
elif [ "$(uname)" == "Darwin" ]; then
8789
# Mount CVMFS repositories (no autofs available)

0 commit comments

Comments
 (0)