aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-30 14:04:25 +0200
committerGitHub <noreply@github.com>2017-04-30 14:04:25 +0200
commite7ed942684dd6b2cb0be509878048a85d8642f8d (patch)
tree67ca95b43139c83588d1a2e7edaeafe1d925112a /scripts/install
parente1bf40f646d5ac7ba0e540f5110c29a79a07119d (diff)
downloadmastodon_ynh-e7ed942684dd6b2cb0be509878048a85d8642f8d.tar.gz
mastodon_ynh-e7ed942684dd6b2cb0be509878048a85d8642f8d.tar.bz2
mastodon_ynh-e7ed942684dd6b2cb0be509878048a85d8642f8d.zip
[enh] Switch to tagged release
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/install b/scripts/install
index f5522df..3357c1d 100644
--- a/scripts/install
+++ b/scripts/install
@@ -85,13 +85,17 @@ sudo su -c "psql" postgres <<< \
ynh_psql_create_db_without_password "$app"
sudo systemctl restart postgresql
-# Download all Ruby source
+# Download all sources rbenv, ruby and mastodon
sudo su - $app <<CLONECOMMANDS
git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv
git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/ruby-build
git clone https://github.com/tootsuite/mastodon.git $final_path/live
CLONECOMMANDS
+# Switch to tagged release
+cd $final_path/live
+sudo git checkout $(git tag | tail -n 1)
+
# Be king rewind (/var/cache/yunohost/from_file/scripts)
popd