1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/44081a39d8f0/ Changeset: 44081a39d8f0 User: davebgx Date: 2014-07-28 18:17:47 Summary: Improve fetching of api key for newly created user. Affected #: 1 file
diff -r 799ceff557bbbfea80cbfd164a297a0364b0c699 -r 44081a39d8f0f36d92991a6faece6636914c1169 lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh --- a/lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh +++ b/lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh @@ -73,12 +73,11 @@ fi done
-echo -n "Retrieving admin user's API key..." -api_key_json=`curl -s --user $admin_user_email:$admin_user_password $local_shed_url/api/authenticate/baseauth/` -api_key=`echo $api_key_json | grep api_key | awk 'BEGIN { FS=""" } ; { print $4 }' | sed 's/\s+//'` +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]+).+/\1/'`
if [[ -z $api_key && ${api_key+x} ]] ; then - stop_err "Error getting API key for user $admin_user_email." + stop_err "Error getting API key for user $admin_user_email." fi
echo " done."
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
galaxy-commits@lists.galaxyproject.org