From fae883df56d8fee45d0cb4882f385d2dcf7c908f Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Fri, 13 Apr 2012 10:25:52 -0700 Subject: [PATCH] comments for what I want this to be --- script/install.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/script/install.sh b/script/install.sh index c2b3dd04d..f0b325cff 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