1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00
This commit is contained in:
nemsia 2017-04-29 23:19:38 +02:00
commit b7789afb50
2 changed files with 7 additions and 2 deletions

View file

@ -82,13 +82,17 @@ sudo su -c "psql" postgres <<< \
ynh_psql_create_db_without_password "$app" ynh_psql_create_db_without_password "$app"
sudo systemctl restart postgresql sudo systemctl restart postgresql
# Download all Ruby source # Download all sources rbenv, ruby and mastodon
sudo su - $app <<CLONECOMMANDS sudo su - $app <<CLONECOMMANDS
git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv 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/rbenv/ruby-build.git $final_path/.rbenv/plugins/ruby-build
git clone https://github.com/tootsuite/mastodon.git $final_path/live git clone https://github.com/tootsuite/mastodon.git $final_path/live
CLONECOMMANDS CLONECOMMANDS
# Switch to tagged release
pushd $final_path/live
sudo git checkout $(git tag | tail -n 1)
# Be king rewind (/var/cache/yunohost/from_file/scripts) # Be king rewind (/var/cache/yunohost/from_file/scripts)
popd popd

View file

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