Commit 48a821bb authored by Nicolo Magini's avatar Nicolo Magini
Browse files

Fix to support generic format for endpoint

parent d154393e
......@@ -55,7 +55,7 @@ else
echo "</pre>"
fi
cat $SAME_SENSOR_WORK/nodes/$nodeName/pfnpath.txt | cut -d/ -f1-3 > $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt
cat $SAME_SENSOR_WORK/nodes/$nodeName/pfnpath.txt | cut -d"?" -f1 > $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt
storagepath=`cat $SAME_SENSOR_WORK/nodes/$nodeName/pfnpath.txt | cut -d= -f2-`
token=CMS_DEFAULT
echo $storagepath > $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt
......
......@@ -19,8 +19,7 @@ if [ ! -f $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt ] ; then
exit $SAME_WARNING
else
echo "Testing SRMv2 endpoint "
port=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt | cut -d : -f3 | cut -d / -f1`
srmv2=srm://$nodeName:$port/srm/managerv2
srmv2=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt`
echo $srmv2
fi
......
......@@ -20,8 +20,7 @@ if [ ! -f $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt ] ; then
exit $SAME_WARNING
else
echo "Testing SRMv2 endpoint "
port=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt | cut -d : -f3 | cut -d / -f1`
srmv2=srm://$nodeName:$port/srm/managerv2
srmv2=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt`
echo $srmv2
fi
......
......@@ -19,8 +19,7 @@ if [ ! -f $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt ] ; then
exit $SAME_WARNING
else
echo "Testing SRMv2 endpoint "
port=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt | cut -d : -f3 | cut -d / -f1`
srmv2=srm://$nodeName:$port/srm/managerv2
srmv2=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt`
echo $srmv2
fi
#
......
......@@ -18,8 +18,7 @@ if [ ! -f $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt ] ; then
exit $SAME_WARNING
else
echo "Testing SRMv2 endpoint "
port=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt | cut -d : -f3 | cut -d / -f1`
srmv2=srm://$nodeName:$port/srm/managerv2
srmv2=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt`
echo $srmv2
fi
......
......@@ -17,8 +17,7 @@ if [ ! -f $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt ] ; then
exit $SAME_WARNING
else
echo "Testing SRMv2 endpoint "
port=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt | cut -d : -f3 | cut -d / -f1`
srmv2=srm://$nodeName:$port/srm/managerv2
srmv2=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt`
echo $srmv2
fi
......
......@@ -57,7 +57,7 @@ else
echo "</pre>"
fi
cat $SAME_SENSOR_WORK/nodes/$nodeName/$pfnFilename | cut -d/ -f1-3 > $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt
cat $SAME_SENSOR_WORK/nodes/$nodeName/$pfnFilename | cut -d "?" -f1 > $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt
storagepath=`cat $SAME_SENSOR_WORK/nodes/$nodeName/$pfnFilename | cut -d= -f2-`
token=CMS_DEFAULT
echo $storagepath > $SAME_SENSOR_WORK/nodes/$nodeName/userpath.txt
......@@ -88,8 +88,7 @@ if [ ! -f $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt ] ; then
exit $SAME_WARNING
else
echo "Testing SRMv2 endpoint "
port=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt | cut -d : -f3 | cut -d / -f1`
srmv2=srm://$nodeName:$port/srm/managerv2
srmv2=`cat $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt`
echo $srmv2
fi
......
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