-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlhcb.context
More file actions
36 lines (32 loc) · 825 Bytes
/
lhcb.context
File metadata and controls
36 lines (32 loc) · 825 Bytes
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
34
35
36
#!/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
ls /cvmfs/lhcb.cern.ch >/dev/null
echo 'if [ "$PS1" ]; then
if [ "x$CERNVM_LHCB_ENV" = "x" ]; then
. /cvmfs/lhcb.cern.ch/etc/login.sh || true
export CERNVM_LHCB_ENV=1
fi
fi' >> /home/lhcb/.bashrc
exit 0
[amiconfig]
plugins=cernvm
[cernvm]
organisations=LHCB
repositories=lhcb,lhcbdev,grid,sft
shell=/bin/bash
config_url=http://cernvm.cern.ch/config
users=lhcb:lhcb:lhcb
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]