1 | #! /bin/bash |
---|
2 | # |
---|
3 | # Set-up script for NDG security software |
---|
4 | # |
---|
5 | # Run this script to initialise the environment for |
---|
6 | # NDG security |
---|
7 | # |
---|
8 | # NERC Data Grid Project |
---|
9 | # |
---|
10 | # P J Kershaw 21/10/05 |
---|
11 | # |
---|
12 | # Copyright (C) 2005 CCLRC & NERC |
---|
13 | # |
---|
14 | # This software may be distributed under the terms of the Q Public License, |
---|
15 | # version 1.0 or later. |
---|
16 | # |
---|
17 | # $Id$ |
---|
18 | |
---|
19 | # NDG Installation directory |
---|
20 | export NDG_DIR=<NDG location> |
---|
21 | |
---|
22 | |
---|
23 | # NDG bin directory |
---|
24 | if [ ! `echo ${PATH} | grep "${NDG_DIR}/bin"` ]; then |
---|
25 | |
---|
26 | export PATH=${NDG_DIR}/bin:$PATH |
---|
27 | fi |
---|
28 | |
---|
29 | |
---|
30 | # NDG shared libraries - set path here or alternatively use ldconfig $NDG_DIR/lib from |
---|
31 | # the command line to link the NDG shared libraries. |
---|
32 | #if [ ! `echo ${LD_LIBRARY_PATH} | grep "${NDG_DIR}/lib"` ]; then |
---|
33 | # |
---|
34 | # export LD_LIBRARY_PATH=${NDG_DIR}/lib:$LD_LIBRARY_PATH |
---|
35 | #fi |
---|
36 | |
---|
37 | |
---|
38 | # NDG Custom Python installation |
---|
39 | if [ ! `echo ${PATH} | grep "${NDG_DIR}/<Python location>"` ]; then |
---|
40 | |
---|
41 | export PATH=${NDG_DIR}/<Python location>:$PATH |
---|
42 | fi |
---|
43 | |
---|
44 | |
---|
45 | # Override default Attribute Authority and Session Manager port number |
---|
46 | # settings |
---|
47 | #export NDG_AA_PORT_NUM=5001 |
---|
48 | #export NDG_SM_PORT_NUM= |
---|
49 | |
---|
50 | |
---|
51 | # Globus Toolkit and MyProxy Server |
---|
52 | export GLOBUS_LOCATION=<Globus location> |
---|
53 | export GPT_LOCATION=${GLOBUS_LOCATION} |
---|
54 | |
---|
55 | . ${GLOBUS_LOCATION}/etc/globus-user-env.sh |
---|
56 | |
---|
57 | export MYPROXY_SERVER=<hostname> |
---|
58 | |
---|
59 | # Set DN explicitly to ensure match with server certificate |
---|
60 | #export MYPROXY_SERVER_DN="<hostcert DN with '/' delimiters>" |
---|
61 | |
---|
62 | |
---|
63 | if [ ! `echo ${PATH} | grep "${GLOBUS_LOCATION}/bin"` ]; then |
---|
64 | |
---|
65 | export PATH=${PATH}:${GLOBUS_LOCATION}/bin |
---|
66 | fi |
---|
67 | |
---|
68 | |
---|
69 | # MySQL or other database |
---|
70 | if [ ! `echo ${PATH} | grep "<db location>"` ]; then |
---|
71 | |
---|
72 | export PATH=<db location>:$PATH |
---|
73 | fi |
---|