Skip to content

Commit 79af09f

Browse files
committed
copy common.conf logic for this repo
1 parent 4344ff9 commit 79af09f

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed
Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1-
if [ "$CVMFS_HTTP_PROXY" = "DIRECT" ] || [ "$CVMFS_HTTP_PROXY" = "auto;DIRECT" ]; then
2-
CVMFS_SERVER_URL="http://s1bnl-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1fnal-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1osggoc-cvmfs.openhtc.io/cvmfs/@fqrn@"
1+
# Other than setting the CVMFS_SERVER_URL, this file copies the logic from
2+
# common.conf in the configuration repository
3+
4+
if [ "$CVMFS_CLIENT_PROFILE" = "single" ]; then
5+
if [ "$CVMFS_HTTP_PROXY" = "" ]; then
6+
CVMFS_HTTP_PROXY="auto;DIRECT"
7+
fi
8+
fi
9+
10+
if [ -z "$CVMFS_USE_CDN" ]; then
11+
if [ "$CVMFS_HTTP_PROXY" = "DIRECT" ] || [ "$CVMFS_HTTP_PROXY" = "auto;DIRECT" ]; then
12+
CVMFS_USE_CDN=yes
13+
fi
14+
fi
15+
16+
if [ "$CVMFS_USE_CDN" = "yes" ] || [ "$CVMFS_CLIENT_PROFILE" = "custom" ]; then
317
CVMFS_FALLBACK_PROXY=""
18+
fi
19+
20+
####
21+
22+
if [ "$CVMFS_USE_CDN" = "yes" ]; then
23+
CVMFS_SERVER_URL="http://s1bnl-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1fnal-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1osggoc-cvmfs.openhtc.io/cvmfs/@fqrn@"
424
else
525
CVMFS_SERVER_URL="http://cvmfs-s1bnl.opensciencegrid.org:8000/cvmfs/@fqrn@;http://cvmfs-s1fnal.opensciencegrid.org:8000/cvmfs/@fqrn@;http://cvmfs-s1goc.opensciencegrid.org:8000/cvmfs/@fqrn@"
626
fi

0 commit comments

Comments
 (0)