forked from cernvm/public-contexts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atlas.context
33 lines (29 loc) · 890 Bytes
/
atlas.context
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh.after
parents=$(pid=$$; while [ $pid -ne 1 ]; do pid=$(ps -o ppid= -p $pid); cat /proc/$(echo $pid)/cmdline; done)
if ! echo $parents | grep -q amiconfig; then
echo "Skipping startup script, which should only run under amiconfig daemon"
exit 0
fi
. /etc/cernvm/site.conf
echo "alias setupATLAS='source \${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'" > /etc/profile.d/asetup.sh
ls /cvmfs/atlas.cern.ch >/dev/null
exit 0
[amiconfig]
plugins=cernvm
[cernvm]
organisations=ATLAS
repositories=atlas,atlas-condb,atlas-nightlies,grid,sft
shell=/bin/bash
config_url=http://cernvm.cern.ch/config
users=atlas:atlas:atlas
environment=ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
edition=Desktop
screenRes=1280x700
keyboard=us
startXDM=on
auto_login=on
[ucernvm-begin]
cvmfs_branch=cernvm-sl7.cern.ch
cvmfs_server=hepvm.cern.ch
cvmfs_path=cvm4
[ucernvm-end]