Skip to content

Instantly share code, notes, and snippets.

@nathanhaigh
Last active December 22, 2015 21:19
Show Gist options
  • Save nathanhaigh/6532344 to your computer and use it in GitHub Desktop.
Save nathanhaigh/6532344 to your computer and use it in GitHub Desktop.
Install/Update OpenStack Python API's
#!/bin/bash
sudo apt-get update && sudo apt-get -y dist-upgrade
urls=(
'https://github.com/pypa/pip.git'
'git://github.com/openstack-dev/pbr.git'
'git://github.com/iguananaut/d2to1.git'
'https://github.com/kelp404/six.git'
'https://github.com/openstack/python-glanceclient.git'
'https://github.com/openstack/python-keystoneclient.git'
'https://github.com/openstack/python-novaclient.git'
'https://github.com/openstack/python-swiftclient.git'
)
for url in ${urls[@]}; do
output_dir=${url##*/}
output_dir=${output_dir%%.git}
if [[ ! -e ./${output_dir} ]]; then
git clone $url ./${output_dir}
cd ./${output_dir}
else
cd ./${output_dir}
git pull
fi
sudo python setup.py install
cd ../
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment