Skip to content

Commit

Permalink
Attempt at hack to fix bootstrap script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jul 15, 2015
1 parent 8eb39a4 commit f82b3b3
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -77,6 +77,9 @@ done

echo -n "Retrieving admin user's API key from $local_shed_url..."

curl_response=`curl -s --user $admin_user_email:$admin_user_password $local_shed_url/api/authenticate/baseauth/`
# Gets an empty response only on first attempt for some reason?
sleep 1
curl_response=`curl -s --user $admin_user_email:$admin_user_password $local_shed_url/api/authenticate/baseauth/`
api_key=`echo $curl_response | grep api_key | awk -F\" '{print $4}'`

Expand Down

0 comments on commit f82b3b3

Please sign in to comment.