source: TI12-security/tags/rel0-2/python/ndgSetup.sh @ 643

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/tags/rel0-2/python/ndgSetup.sh@643
Revision 643, 1.2 KB checked in by pjkersha, 14 years ago (diff)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
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
20export NDG_DIR=<NDG location>
21
22
23# NDG bin directory
24if [ ! `echo ${PATH} | grep "${NDG_DIR}/bin"` ]; then
25
26    export PATH=${NDG_DIR}/bin:$PATH
27fi
28
29
30
31# NDG Custom Python installation
32if [ ! `echo ${PATH} | grep "${NDG_DIR}/<python location>"` ]; then
33
34    export PATH=${NDG_DIR}/<python location>:$PATH
35fi
36
37# Globus Toolkit and MyProxy Server
38export GLOBUS_LOCATION=<Globus location>
39export GPT_LOCATION=${GLOBUS_LOCATION}
40
41. ${GLOBUS_LOCATION}/etc/globus-user-env.sh
42
43export MYPROXY_SERVER=`/bin/hostname`
44
45if [ ! `echo ${PATH} | grep "${GLOBUS_LOCATION}/bin"` ]; then
46
47    export PATH=${PATH}:${GLOBUS_LOCATION}/bin
48fi
49
50if [ ! `echo ${PATH} | grep "${GLOBUS_LOCATION}/sbin/"` ]; then
51
52    export PATH=${PATH}:${GLOBUS_LOCATION}/sbin/
53fi
54
55
56# Database settings
57if [ ! `echo ${PATH} | grep "<database location>"` ]; then
58
59    export PATH=<database location>:$PATH
60fi
Note: See TracBrowser for help on using the repository browser.