From 80ca4af20776bebfb85072990f45e5d78fc82983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9veloppeur=20=C3=A9gar=C3=A9?= Date: Thu, 5 Mar 2015 14:44:00 +0100 Subject: [PATCH] stop before update --- scripts/upgrade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 74623d2..ff1c74c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -5,12 +5,13 @@ domain=$(sudo yunohost app setting diaspora domain) admin=$(sudo yunohost app setting diaspora admin) final_path=$(sudo yunohost app setting diaspora final_path) +sudo service diaspora_ynh stop +sleep 3 + sudo su - diaspora -c "rvm get stable" sudo su - diaspora -c "git checkout Gemfile.lock db/schema.rb ; git pull" sudo su - diaspora -c "bundle" sudo su - diaspora -c "RAILS_ENV=production bundle exec rake db:migrate" sudo su - diaspora -c "RAILS_ENV=production bundle exec rake tmp:cache:clear assets:precompile" -sudo service diaspora_ynh stop -sleep 3 sudo service diaspora_ynh start