Created
October 2, 2014 04:28
-
-
Save damiann/76258f40c698abbd9c19 to your computer and use it in GitHub Desktop.
Install Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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