mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Upgrade with latest stable version (#31)
* [enh] Upgrade on latest Upgrade with latest mastodon stable version
This commit is contained in:
parent
a074e13ef5
commit
c7eb4ace25
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue