1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Merge pull request #4 from nemsia/patch-1

Install and Upgrade on tagged release
This commit is contained in:
nemsia 2017-04-28 18:08:36 +02:00 committed by GitHub
commit cb43d5ad98
2 changed files with 5 additions and 3 deletions

View file

@ -82,12 +82,13 @@ sudo su -c "psql" postgres <<< \
ynh_psql_create_db_without_password "$app"
sudo systemctl restart postgresql
# Download all Ruby source
# Download all sources rbenv, ruby and mastodon
pushd $final_path/live
sudo su - $app <<CLONECOMMANDS
git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv
git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/ruby-build
git clone https://github.com/tootsuite/mastodon.git $final_path/live
cd $final_path/live
pushd $final_path/live
git checkout $(git tag | tail -n 1)
CLONECOMMANDS

View file

@ -38,8 +38,9 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
sudo systemctl stop mastodon-*.service
# Update Mastodon
pushd /opt/mastodon/live
sudo su - $app <<COMMANDS
cd live
pushd ~/live
git fetch
git pull https://github.com/tootsuite/mastodon.git master
git checkout $(git tag | tail -n 1)