1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

ajout script de maj

a tester
This commit is contained in:
Développeur égaré 2015-03-01 23:51:00 +01:00
parent 6072030390
commit b4bdffe9d2
2 changed files with 16 additions and 1 deletions

View file

@ -43,7 +43,7 @@ git clone -b master git://github.com/diaspora/diaspora.git
sudo mkdir -p $final_path
tar -cf source.tar.gz diaspora/
mv source.tar.gz diaspora/public/source.tar.gz
sudo cp -ar diaspora/* $final_path
sudo cp -ar diaspora $final_path/../.
# Generate random password

15
scripts/upgrade Normal file
View file

@ -0,0 +1,15 @@
#!/bin/bash
# Retrieve arguments
domain=$(sudo yunohost app setting diaspora domain)
admin=$(sudo yunohost app setting diaspora admin)
final_path=$(sudo yunohost app setting diaspora final_path)
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 restart