aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-05-28 17:31:51 +0200
committernemsia <nemsia@nemsia.org>2017-05-28 17:31:51 +0200
commit8f88641088a09aa466d6d2de760d9470b3d4d322 (patch)
treef7c79acc93f6548cf00db2801eb46a7d9ff7d3ac /scripts/install
parenta10d77fe4f348ecad1304435cbcd5bd344a304df (diff)
downloadmastodon_ynh-8f88641088a09aa466d6d2de760d9470b3d4d322.tar.gz
mastodon_ynh-8f88641088a09aa466d6d2de760d9470b3d4d322.tar.bz2
mastodon_ynh-8f88641088a09aa466d6d2de760d9470b3d4d322.zip
upgrade from pre-release
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/install b/scripts/install
index 1634c52..ebe4569 100644
--- a/scripts/install
+++ b/scripts/install
@@ -95,11 +95,9 @@ CLONECOMMANDS
# Switch branch to tagged release
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
pushd ~/live
-git checkout $version
+git checkout $(git tag | tail -n 1)
SWITCHCOMMANDS
# Be king rewind (/var/cache/yunohost/from_file/scripts)