1
if [ -z "$SGE_ROOT" -o ! -d "$SGE_ROOT" ]; then
3
echo ERROR: Please set your \$SGE_ROOT environment variable
4
echo and start this script again.
10
if [ ! -f $SGE_ROOT/util/arch_variables ]; then
12
echo ERROR: Missing shell script \"$SGE_ROOT/util/arch_variables\".
13
echo Please verify your distribution and restart this script. Exit.
18
. $SGE_ROOT/util/arch_variables
20
if [ "$SGE_CELL" = "" ]; then
25
if [ "$SGE_QMASTER_PORT" != "" ]; then
26
CA_PORT=port$SGE_QMASTER_PORT
35
CATOP=$SGE_ROOT/$SGE_CELL/common/sgeCA
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:`
43
CALOCALTOP=/tmp/sgeCA/$CA_PORT/$SGE_CELL
47
CAHOMEKEYDIR=$HOMEDIR/.sge/$CA_PORT/$SGE_CELL
49
if [ -f $SGE_ROOT/$SGE_CELL/common/act_qmaster ]; then
50
CAHOST="`cat $SGE_ROOT/$SGE_CELL/common/act_qmaster`"