mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
stop before update
This commit is contained in:
parent
1d3fd366d0
commit
80ca4af207
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue