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

[fix] Install and Upgrade to tag n-1 (#39)

This commit is contained in:
nemsia 2017-05-29 13:32:23 +02:00 committed by GitHub
parent a10d77fe4f
commit e8870da4b3
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ url=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest |
version=$(echo $url | cut -d/ -f8)
sudo su - $app <<SWITCHCOMMANDS
pushd ~/live
git checkout $version
git checkout $(git tag | tail -n 1)
SWITCHCOMMANDS
# Be king rewind (/var/cache/yunohost/from_file/scripts)

View file

@ -54,7 +54,7 @@ url=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest |
version=$(echo $url | cut -d/ -f8)
sudo su - $app <<SWITCHCOMMANDS
pushd ~/live
git checkout $version
git checkout $(git tag | tail -n 1)
SWITCHCOMMANDS
# upgrade Node.js v4 to v6