docker use executing username to avoid root file perms, support absolute paths in repoapi_client

This commit is contained in:
Bryan Thornbury 2015-10-22 16:17:57 -07:00
parent 85d4f888ea
commit f4d72cd201
3 changed files with 2 additions and 7 deletions

View file

@ -68,7 +68,7 @@ function AddPackage
fi
packageUrl=$(grep "sourceUrl" $packageFile | head -n 1 | awk '{print $2}')
echo "Adding package to $server [$packageUrl]"
curl -i -k "$baseurl/v1/packages" --data @./$packageFile -H "Content-Type: application/json"
curl -i -k "$baseurl/v1/packages" --data @$packageFile -H "Content-Type: application/json"
BailIf $?
echo ""
}