From 5a9b6ffcee164cd1b5faf4f0b663e7da1556b7e8 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Thu, 17 Dec 2020 11:03:51 +0100 Subject: [PATCH] Update HLT subtables after the migration to EOS Update the ConfDB subtables creation script following the migration of the repository from AFS to EOS: - fix a bug that prevented using the JAR files in-place; - update the curl command to follow redirects when downloading the JAR files over the web. --- HLTrigger/Configuration/tables/subtables.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HLTrigger/Configuration/tables/subtables.sh b/HLTrigger/Configuration/tables/subtables.sh index e27e8fed02222..fc60835b3ffec 100755 --- a/HLTrigger/Configuration/tables/subtables.sh +++ b/HLTrigger/Configuration/tables/subtables.sh @@ -55,7 +55,7 @@ function makeCreateConfig() { workDir="$baseDir" # try to read the .jar files from AFS, or download them - if checkJars "$baseDir" $jars; then + if checkJars "$baseDir" $JARS; then # read the .jar fles from AFS workDir="$baseDir" else @@ -75,7 +75,7 @@ function makeCreateConfig() { fi # download to a temporay file and use an atomic move (in case an other istance is downloading the same file local TMPJAR=$(mktemp -p "$workDir" .${JAR}.XXXXXXXXXX) - curl -s "$baseUrl/$JAR" -o "$TMPJAR" + curl -s -L "$baseUrl/$JAR" -o "$TMPJAR" mv -n "$TMPJAR" "$workDir/$JAR" rm -f "$TMPJAR" done