Skip to content
Snippets Groups Projects
Commit 4a353b8b authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Add support for other data sites

parent 06ddaf69
No related branches found
No related tags found
No related merge requests found
Pipeline #52310 failed
......@@ -24,9 +24,17 @@ requirements:
entry: |
#!/bin/bash
mkdir out
if [[ "$1" == *"lta-head.lofar.psnc.pl"* ]]; then
wget --no-check-certificate --read-timeout=5 --timeout 5 https://lta-download.lofar.psnc.pl/lofigrid/SRMFifoGet.py\?surl\=$1
cd out
tar -xvf ../*.tar
else
cd out
turl=`echo $1 | awk '{gsub("srm://srm.grid.sara.nl[:0-9]*","gsiftp://gridftp.grid.sara.nl"); print}'`
turl=`echo $turl | awk '{gsub("srm://lofar-srm.fz-juelich.de[:0-9]*","gsiftp://lofar-gridftp.fz-juelich.de:2811"); print}'`
echo "Downloading $turl"
globus-url-copy $turl - | tar -xvf -
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment