mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Merge pull request #301 from mvdbeek/bootstrapping-fix
Exclude curly braces from API-key to fix toolshed bootstrapping.
This commit is contained in:
@@ -76,7 +76,7 @@ while : ; do
|
||||
done
|
||||
|
||||
echo -n "Retrieving admin user's API key from $local_shed_url..."
|
||||
api_key=`curl -s --user $admin_user_email:$admin_user_password $local_shed_url/api/authenticate/baseauth/ | sed 's/..*api_key[^0-9a-f][^0-9a-f]*\([0-9a-f]*\)..*/\1/'`
|
||||
api_key=`curl -s --user $admin_user_email:$admin_user_password $local_shed_url/api/authenticate/baseauth/ | sed 's/..*api_key[^0-9a-f][^0-9a-f]*\([0-9a-f]*\)..*/\1/'| sed 's/[{}]//g'`
|
||||
|
||||
if [[ -z $api_key && ${api_key+x} ]] ; then
|
||||
stop_err "Error getting API key for user $admin_user_email."
|
||||
|
||||
Reference in New Issue
Block a user