diff --git a/script/install.sh b/script/install.sh index c2b3dd04d31886ae3f49248ad7bbf9da30169cd7..f0b325cff15923f8390b9c2e96b83d06784815da 100755 --- a/script/install.sh +++ b/script/install.sh @@ -1,4 +1,25 @@ #!/bin/bash +#MAKE ME BETTER +# see https://github.com/jamiew/git-friendly for more ideas + +#maybe this should be two files +#one which includes cloning diaspora/diaspora, and one that assumes you already cloned it yourself +# maybe one script just calls another? + + +#other ideas what we could do + +#1. check that you have ruby installed, if not, point to wiki page and exit +#2. check to see if we need sudo (generally, if it is a system ruby you need sudo, which you can check + # if which ruby is /usr/bin/ruby, or does not have rvm in the path) +#3 check if you have bundle installed and install it, and install with/without sudo if you need it + +#check if you have mysql and/or postgres installed, point to wiki page if neither is found. +#(maybe even switch database.yml if this is the case?) + +#make it work if you have just cloned diapsora and want a quick setup, or +#support magic install, like this http://docs.meteor.com/#quickstart + # echo "downloading diaspora" #git clone git@github.com:diaspora/diaspora.git @@ -19,4 +40,5 @@ bundle install echo "creating and migrating default database in config/database.yml. please wait..." rake db:create db:migrate --trace -echo "It worked! now start your server in development mode with 'rails s'" \ No newline at end of file +echo "It worked! now start your server in development mode with 'rails s'" +exit 0 \ No newline at end of file