~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/dist/util/sgeCA/sge_ca.cnf

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if [ -z "$SGE_ROOT" -o ! -d "$SGE_ROOT" ]; then
 
2
   echo
 
3
   echo ERROR: Please set your \$SGE_ROOT environment variable
 
4
   echo and start this script again.
 
5
   echo Exit
 
6
   echo
 
7
   exit 1
 
8
fi
 
9
 
 
10
if [ ! -f $SGE_ROOT/util/arch_variables ]; then
 
11
   echo
 
12
   echo ERROR: Missing shell script \"$SGE_ROOT/util/arch_variables\".
 
13
   echo Please verify your distribution and restart this script. Exit.
 
14
   echo
 
15
   exit 1
 
16
fi
 
17
 
 
18
. $SGE_ROOT/util/arch_variables
 
19
 
 
20
if [ "$SGE_CELL" = "" ]; then
 
21
   SGE_CELL=default
 
22
   export SGE_CELL
 
23
fi
 
24
 
 
25
if [ "$SGE_QMASTER_PORT" != "" ]; then
 
26
   CA_PORT=port$SGE_QMASTER_PORT
 
27
   export CA_PORT
 
28
else
 
29
   CA_PORT=sge_qmaster
 
30
   export CA_PORT
 
31
fi
 
32
 
 
33
SetAdminUser
 
34
 
 
35
CATOP=$SGE_ROOT/$SGE_CELL/common/sgeCA
 
36
export CATOP
 
37
 
 
38
euid=`$V5UTILBIN/uidgid -euid`
 
39
if [ $euid = 0 ]; then
 
40
   CALOCALTOP=/var/sgeCA/$CA_PORT/$SGE_CELL
 
41
   HOMEDIR=`env LC_ALL=C grep '^root:' /etc/passwd | cut -f6 -d:`
 
42
else
 
43
   CALOCALTOP=/tmp/sgeCA/$CA_PORT/$SGE_CELL
 
44
   HOMEDIR=$HOME
 
45
fi
 
46
 
 
47
CAHOMEKEYDIR=$HOMEDIR/.sge/$CA_PORT/$SGE_CELL
 
48
 
 
49
if [ -f $SGE_ROOT/$SGE_CELL/common/act_qmaster ]; then
 
50
   CAHOST="`cat $SGE_ROOT/$SGE_CELL/common/act_qmaster`"
 
51
else
 
52
   CAHOST=""
 
53
fi   
 
54