mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
[enh] Switch branch with mastodon user
This commit is contained in:
parent
869a6df4cd
commit
826e05328d
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
CLONECOMMANDS
|
||||
|
||||
# Switch to tagged release
|
||||
# Switch branch to tagged release
|
||||
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)
|
||||
popd
|
||||
|
|
|
@ -50,7 +50,10 @@ PULLCOMMANDS
|
|||
|
||||
# Switch branch to tagged release
|
||||
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
|
||||
sudo su - $app <<COMMANDS
|
||||
|
|
Loading…
Add table
Reference in a new issue