Commit 7f2203b8 authored by Andrea Sciaba's avatar Andrea Sciaba
Browse files

New middleware version discovery

parent 21a916e5
......@@ -102,19 +102,25 @@ fi
echo
echo "Checking middleware installation..."
echo
type="unknown"
mwver='unknown'
if type -f glite-version > /dev/null; then
mw=0
if type -f glite-version > /dev/null 2>&1; then
type="gLite"
mwver=`glite-version`
mw=1
elif [ -f /etc/emi-version ] ; then
type="EMI"
mwver=`cat /etc/emi-version`
elif type -f lcg-version > /dev/null; then
mw=1
elif type -f lcg-version > /dev/null 2>&1; then
type="LCG"
mwver=`lcg-version`
mw=1
fi
if [ $mw == 1 ] ; then
echo "Middleware: $type $mwver"
else
echo "WARNING: Cannot find middleware type and version"
fi
echo "Middleware: $type $mwver"
type -t lcg-cp > /dev/null
result=$?
......
Markdown is supported
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