Created
January 19, 2010 07:56
-
-
Save scottjbarr/280761 to your computer and use it in GitHub Desktop.
Install Starling on Debian
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/bash | |
| # | |
| # Install Starling on Debian. | |
| # | |
| # Author : Scott Barr | |
| # Date : 19 Jan 2010 | |
| # | |
| if [ ! `which ruby` ]; then | |
| echo "Ruby required, installing..." | |
| bash -c "`curl http://gist.github.com/raw/271029/24fdf5d8412853ae32d8102e0a1b950b3269e1b9/install_ruby18_on_debian.sh`" | |
| end | |
| if [ `which starling` ]; then | |
| echo "Starling already installed." | |
| exit | |
| fi | |
| # install the starling gem | |
| sudo gem install starling-starling | |
| # install the startup script | |
| wget http://gist.github.com/raw/280760/6439f5595288efd3a2be06c1ce6d2c5ff76a053b/starling | |
| sudo mv starling /etc/init.d/starling | |
| sudo chmod u+x /etc/init.d/starling | |
| # start the service | |
| sudo /etc/init.d/starling start | |
| # set the start at boot | |
| sudo sysv-rc-conf starling on 2345 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment