Skip to content

Instantly share code, notes, and snippets.

@damiann
Created October 2, 2014 04:28
Show Gist options
  • Save damiann/76258f40c698abbd9c19 to your computer and use it in GitHub Desktop.
Save damiann/76258f40c698abbd9c19 to your computer and use it in GitHub Desktop.
Install Ubuntu
#!/bin/sh
{
echo "This script requires superuser access to install apt packages."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
# run inside sudo
sudo sh <<SCRIPT
# add heroku repository to apt
echo "deb http://toolbelt.heroku.com/ubuntu ./" > /etc/apt/sources.list.d/heroku.list
# install heroku's release key for package verification
wget -O- https://toolbelt.heroku.com/apt/release.key | apt-key add -
# update your sources
apt-get update
# install the toolbelt
apt-get install -y heroku-toolbelt
SCRIPT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment