/[pdpsoft]/trunk/grid-mw-security/glexec/util/wrap-env-var/glexec_wrap.sh
ViewVC logotype

Contents of /trunk/grid-mw-security/glexec/util/wrap-env-var/glexec_wrap.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1900 - (show annotations) (download) (as text)
Mon Aug 30 17:03:06 2010 UTC (11 years, 11 months ago) by okoeroo
File MIME type: application/x-shellscript
File size: 1088 byte(s)
This fix will address GGUS ticket 58560: "glite-GLEXEC_wn makes uses of GLEXEC_LOCATION instead of GLITE_LOCATION"

The script will build-up a BASEDIR. The GLEXEC_LOCATION will be used first, with a fall back to GLITE_LOCATION and if that is not set, the "/opt/glite" directory will be used as a best guess.






1 #!/bin/sh
2
3 # Copyright (c) Members of the EGEE Collaboration. 2009.
4 # See http://www.eu-egee.org/partners/ for details on the copyright
5 # holders.
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 # http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19 # Authors: Jan Just Keijser
20 # NIKHEF Amsterdam, the Netherlands
21 # janjust@nikhef.nl
22
23 if test -n "${GLEXEC_LOCATION}"
24 then
25 BASEDIR="${GLEXEC_LOCATION}"
26 elif test -n "${GLITE_LOCATION}"
27 then
28 BASEDIR="${GLITE_LOCATION}"
29 else
30 BASEDIR="/opt/glite"
31 fi
32
33
34 cd ${BASEDIR}
35 export GLEXEC_ENV=`${0%/*}/glexec_wrapenv.pl`
36 exec ${BASEDIR}/sbin/glexec ${0%/*}/glexec_unwrapenv.pl -- $@

Properties

Name Value
svn:executable *

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28