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

Upgrade with latest stable version (#31)

* [enh] Upgrade on latest

Upgrade with latest mastodon stable version
This commit is contained in:
nemsia 2017-05-21 15:23:14 +02:00 committed by GitHub
parent a074e13ef5
commit c7eb4ace25

View file

@ -50,9 +50,11 @@ PULLCOMMANDS
# Switch branch to tagged release # Switch branch to tagged release
cd $final_path/live cd $final_path/live
url=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | sort -r | head -1 | cut -d\" -f4)
version=$(echo $url | cut -d/ -f8)
sudo su - $app <<SWITCHCOMMANDS sudo su - $app <<SWITCHCOMMANDS
pushd ~/live pushd ~/live
git checkout $(git tag | tail -n 1) git checkout $version
SWITCHCOMMANDS SWITCHCOMMANDS
# Apply Mastodon upgrade # Apply Mastodon upgrade