From 8e8aaed7400a22a6685faaa42f4dbfa5e4ea062e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9veloppeur=20=C3=A9gar=C3=A9?= <97802n@mac97802n.maif.local> Date: Wed, 18 Feb 2015 12:59:29 +0100 Subject: [PATCH] problem profil --- scripts/install | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 8f3b6f3..73e6e47 100644 --- a/scripts/install +++ b/scripts/install @@ -68,16 +68,16 @@ sudo update-rc.d diaspora_ynh defaults sudo useradd -d $final_path diaspora sudo chown -R diaspora:diaspora $final_path -sudo su - diaspora -c "echo '[[ -s \"~/.rvm/scripts/rvm\" ]] && source \"~/.rvm/scripts/rvm\"' >> ~/.bashrc" +sudo su - diaspora -c "echo '. ~/.rvm/scripts/rvm' >> ~/.bashrc" # Config RVM and force get app deps (for debug) -sudo su - diaspora -c "cd $final_path; . ~/.bashrc; curl -sSL https://rvm.io/mpapis.asc | gpg --import - ; curl -L dspr.tk/1t" -sudo su - diaspora -c "cd $final_path; . ~/.bashrc; rvm autolibs read-fail ; rvm install 2.0 ; gem install nokogiri -v '1.6.1'; gem install raindrops -v '0.13.0'" +sudo su - diaspora -c "PATH=$PATH:$final_path; curl -sSL https://rvm.io/mpapis.asc | gpg --import - ; curl -L dspr.tk/1t; rvm autolibs read-fail ; rvm install 2.0 ;" +sudo su - diaspora -c "PATH=$PATH:$final_path; gem install nokogiri -v '1.6.1'; gem install raindrops -v '0.13.0'" # construct diaspora app -sudo su - diaspora -c "cd $final_path; . ~/.bashrc; RAILS_ENV=production bundle install --without test development" -sudo su - diaspora -c "cd $final_path; . ~/.bashrc; RAILS_ENV=production bundle exec rake db:create db:schema:load" -sudo su - diaspora -c "cd $final_path; . ~/.bashrc; RAILS_ENV=production bundle exec rake assets:precompile" +sudo su - diaspora -c "PATH=$PATH:$final_path; RAILS_ENV=production bundle install --without test development" +sudo su - diaspora -c "PATH=$PATH:$final_path; RAILS_ENV=production bundle exec rake db:create db:schema:load" +sudo su - diaspora -c "PATH=$PATH:$final_path; RAILS_ENV=production bundle exec rake assets:precompile" cd $ori_path