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

[enh] Upgrade on latest

Upgrade with latest mastodon stable version
This commit is contained in:
nemsia 2017-05-21 15:10:27 +02:00
parent 13cad968d8
commit e0232cb78c

View file

@ -52,7 +52,9 @@ PULLCOMMANDS
cd $final_path/live
sudo su - $app <<SWITCHCOMMANDS
pushd ~/live
git checkout $(git tag | tail -n 1)
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)
git checkout $(git tag $version)
SWITCHCOMMANDS
# Apply Mastodon upgrade