From f450cc560fd294f27d4650c629bf6c6a8a9f8cd2 Mon Sep 17 00:00:00 2001 From: Mattia Mancini <mancini@astron.nl> Date: Wed, 3 Aug 2022 15:19:08 +0000 Subject: [PATCH] Using wget for Poznan --- cwl/steps/fetch_data.cwl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cwl/steps/fetch_data.cwl b/cwl/steps/fetch_data.cwl index 6877b02..930726c 100644 --- a/cwl/steps/fetch_data.cwl +++ b/cwl/steps/fetch_data.cwl @@ -30,6 +30,12 @@ requirements: cd out echo "Downloading $1" - gfal-copy $1 .. - - tar -xvf ../*.tar \ No newline at end of file + if [[ "$1" == *"lta-head.lofar.psnc.pl"* ]]; then + cd .. + wget --no-check-certificate --read-timeout=5 --timeout 5 https://lta-download.lofar.psnc.pl/lofigrid/SRMFifoGet.py\?surl\=$1 + cd out + else + + gfal-copy $1 .. + fi + tar -xvf ../*.tar -- GitLab