diff options
| author | nemsia <nemsia@nemsia.org> | 2017-04-28 18:02:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-28 18:02:28 +0200 |
| commit | 3a936561602b8ec357ce34cd4be0252ff4fef8bd (patch) | |
| tree | 1c34110705aa3c990519df88760d6cee02b38f74 /scripts/install | |
| parent | 9d73a23ac8fbe8b45071afb3ee9b9ad7700b9ecf (diff) | |
| download | mastodon_ynh-3a936561602b8ec357ce34cd4be0252ff4fef8bd.tar.gz mastodon_ynh-3a936561602b8ec357ce34cd4be0252ff4fef8bd.tar.bz2 mastodon_ynh-3a936561602b8ec357ce34cd4be0252ff4fef8bd.zip | |
[fix] Install tagged release
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install index 67e69b0..d58f08e 100644 --- a/scripts/install +++ b/scripts/install @@ -82,12 +82,13 @@ 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 +pushd $final_path/live 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 -cd $final_path/live +pushd $final_path/live git checkout $(git tag | tail -n 1) CLONECOMMANDS |
