diff options
| author | nemsia <nemsia@nemsia.org> | 2017-04-29 23:19:38 +0200 |
|---|---|---|
| committer | nemsia <nemsia@nemsia.org> | 2017-04-29 23:19:38 +0200 |
| commit | b7789afb50f607cc84794c1315fc5eb23c85827c (patch) | |
| tree | 026a758f9649cedd8115c9677bbc63aff07c2bd8 /scripts/install | |
| parent | 71fe59cb4e550c89e6d8c92b82e082debdfef1ce (diff) | |
| parent | dfcc366e07d441e850d8e3dda58a2d61380ab936 (diff) | |
| download | mastodon_ynh-b7789afb50f607cc84794c1315fc5eb23c85827c.tar.gz mastodon_ynh-b7789afb50f607cc84794c1315fc5eb23c85827c.tar.bz2 mastodon_ynh-b7789afb50f607cc84794c1315fc5eb23c85827c.zip | |
Merge branch 'master' of https://github.com/nemsia/mastodon_ynh
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/install b/scripts/install index 5d1e75e..b6be33c 100644 --- a/scripts/install +++ b/scripts/install @@ -82,13 +82,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 +pushd $final_path/live +sudo git checkout $(git tag | tail -n 1) + # Be king rewind (/var/cache/yunohost/from_file/scripts) popd |
