source: security/trunk/python/ndgSetup.sh @ 498

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg-security/security/trunk/python/ndgSetup.sh@498
Revision 498, 1021 bytes checked in by pjkersha, 15 years ago (diff)

Script to initialise NDG Secuirty environment settings.

  • 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=/usr/local/NDG
21
22
23# NDG Custom Python installation
24if [ ! `echo ${PATH} | grep "${NDG_DIR}/ActivePython-2.4/bin"` ]; then
25
26    export PATH=${NDG_DIR}/ActivePython-2.4/bin:$PATH
27fi
28
29# Globus Toolkit and MyProxy Server
30export GLOBUS_LOCATION=${NDG_DIR}/globus-4.0.1
31export MYPROXY_SERVER=`/bin/hostname`
32
33if [ ! `echo ${PATH} | grep "${GLOBUS_LOCATION}/bin"` ]; then
34
35    export PATH=${PATH}:${GLOBUS_LOCATION}/bin
36fi
37
38if [ ! `echo ${PATH} | grep "${GLOBUS_LOCATION}/sbin/"` ]; then
39
40    export PATH=${PATH}:${GLOBUS_LOCATION}/sbin/
41fi
42
43
44# MySQL
45if [ ! `echo ${PATH} | grep "/usr/local/mysql/bin"` ]; then
46
47    export PATH=/usr/local/mysql/bin:$PATH
48fi
Note: See TracBrowser for help on using the repository browser.