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

[enh] Switch release on mastodon user (#27)

* Update README

* [enh] Switch branch with mastodon user
This commit is contained in:
nemsia 2017-05-08 15:33:08 +02:00 committed by GitHub
parent 1747e72792
commit e6a5b2bc5e
3 changed files with 10 additions and 4 deletions

View file

@ -90,5 +90,5 @@ It seems important to close the inscriptions for your Mastodon, so that it remai
- [x] Fix restore - [x] Fix restore
- [x] Install from a release - [x] Install from a release
- [x] Tune [Create automatic user](https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Administration-guide.md#creating-users-while-registration-is-closed) - [x] Tune [Create automatic user](https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Administration-guide.md#creating-users-while-registration-is-closed)
- [ ] Change SMTP settings - [x] Change SMTP settings
- [ ] Fix errors on jenkins - [ ] Fix errors on jenkins

View file

@ -93,9 +93,12 @@ git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/rub
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 # Switch branch to tagged release
cd $final_path/live cd $final_path/live
sudo git checkout $(git tag | tail -n 1) sudo su - $app <<SWITCHCOMMANDS
pushd ~/live
git checkout $(git tag | tail -n 1)
SWITCHCOMMANDS
# Be king rewind (/var/cache/yunohost/from_file/scripts) # Be king rewind (/var/cache/yunohost/from_file/scripts)
popd popd

View file

@ -50,7 +50,10 @@ PULLCOMMANDS
# Switch branch to tagged release # Switch branch to tagged release
cd $final_path/live cd $final_path/live
sudo git checkout $(git tag | tail -n 1) sudo su - $app <<SWITCHCOMMANDS
pushd ~/live
git checkout $(git tag | tail -n 1)
SWITCHCOMMANDS
# Apply Mastodon upgrade # Apply Mastodon upgrade
sudo su - $app <<COMMANDS sudo su - $app <<COMMANDS