Commit 69d06754 authored by Stefano Belforte's avatar Stefano Belforte
Browse files

look for middleware setup script

parent e4313ec2
......@@ -110,6 +110,11 @@ if [ $isEGEE == 1 ]; then
else
echo "GLITE_WMS_LOCATION =" $GLITE_WMS_LOCATION
filetosource=${GLITE_WMS_LOCATION}/etc/profile.d/grid-env.sh
echo "<pre>"; set -x
ls -l ${GLITE_WMS_LOCATION}
ls -l ${GLITE_WMS_LOCATION}/etc/profile.d
ls -l $filetosource
set +x; echo "</pre>"
if [ -x "$filetosource" ]; then
source "$filetosource" &>/dev/null
[ -x `which lcg-ls` ] && echo "<p><strong>lcg-ls found !</strong><p> as " `which lcg-ls`
......@@ -124,15 +129,15 @@ if [ $isEGEE == 1 ]; then
echo "<p>GLITE_LOCATION =" $GLITE_LOCATION
filetosource=${GLITE_LOCATION}/etc/profile.d/grid-env.sh
echo "<p>try {GLITE_LOCATION}/etc/profile.d/grid-env.sh"
if [ -x "$filetosource" ]; then
if [ -r "$filetosource" ]; then
source "$filetosource" &>/dev/null
[ -x `which lcg-ls` ] && echo "<p><strong>lcg-ls found ! as " `which lcg-ls` "</strong><p>"
[ -r `which lcg-ls` ] && echo "<p><strong>lcg-ls found ! as " `which lcg-ls` "</strong><p>"
fi
filetosource=${GLITE_LOCATION}/../etc/profile.d/grid-env.sh
echo "<p>try {GLITE_LOCATION}/../etc/profile.d/grid-env.sh"
if [ -x "$filetosource" ]; then
if [ -r "$filetosource" ]; then
source "$filetosource" &>/dev/null
[ -x `which lcg-ls` ] && echo "<p><strong>lcg-ls found ! as " `which lcg-ls` "</strong><p>"
[ -r `which lcg-ls` ] && echo "<p><strong>lcg-ls found ! as " `which lcg-ls` "</strong><p>"
fi
fi
......@@ -146,9 +151,15 @@ if [ $isOSG == 1 ]; then
echo "</h3>"
else
echo "OSG_GRID=" $OSG_GRID
if [ -x "$OSG_GRID/setup.sh" ]; then
echo "<pre>"
set -x
ls -l $OSG_GRID/setup.sh
set +x
echo "</pre>"
if [ -r "$OSG_GRID/setup.sh" ]; then
source "${OSG_GRID}/setup.sh" &>/dev/null
[ -x `which lcg-ls` ] && echo "<p><strong>lcg-ls found ! as " `which lcg-ls` "</strong><p>"
[ -x `which lcg-ls` ] && echo "<p><strong>lcg-ls -X found ! as " `which lcg-ls` "</strong><p>"
[ -r `which lcg-ls` ] && echo "<p><strong>lcg-ls -R found ! as " `which lcg-ls` "</strong><p>"
fi
echo "<pre>"
set -x
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment