From a6fc0aa3d4e8dbab9c3985e422a948ddab51087f Mon Sep 17 00:00:00 2001 From: Manuel Romero Date: Tue, 8 Sep 2020 13:35:16 +0200 Subject: [PATCH] fix --- vm-qdc/scripts/setup-QS-Connection-QVDImport.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vm-qdc/scripts/setup-QS-Connection-QVDImport.sh b/vm-qdc/scripts/setup-QS-Connection-QVDImport.sh index d850c5a..13c5872 100644 --- a/vm-qdc/scripts/setup-QS-Connection-QVDImport.sh +++ b/vm-qdc/scripts/setup-QS-Connection-QVDImport.sh @@ -92,7 +92,7 @@ echo "Next ID=$ID" echo "" URL="http://$QDC_IP:8080/qdc/qsConnector/refreshPaths/$ID" echo "--> Sync Paths: $URL" -curl $URL \ +PATHS=$(curl $URL \ -H "Connection: keep-alive" \ -H "Accept: application/json, text/plain, */*" \ -H "User-Agent: $USER_AGENT" \ @@ -101,10 +101,12 @@ curl $URL \ -H "Accept-Language: en-US,en;q=0.9,it;q=0.8,it-IT;q=0.7" \ --compressed \ --insecure \ - -b qdc.cookie.txt + -b qdc.cookie.txt) + +echo $PATHS +dataBinary=$(echo $PATHS | jq '.[0]') ## Connector SET SOURCE NAME -dataBinary='{"timeZoneOffset":0,"windowsPath":"\\\\'$QS_HOST'\\qvds","linuxPath":"/usr/local/qdc/QVDs","id":null,"status":"ADDED","dataConnections":[{"id":null,"connName":"QVDs","connGUID":"'$INSTALL_ID'","connStatus":"ADDED"}],"sourceName":"QVDsQMI","sourceLevel":"MANAGED","baseDir":"/usr/local/qdc/data","internalFileFormat":"TEXT_TAB_DELIMITED"}' echo "" URL="http://$QDC_IP:8080/qdc/qsConnector/linuxPathAvailable/"$ID echo "--> Set source name: $URL"