diff options
| author | nemsia <nemsia@nemsia.org> | 2017-04-29 22:02:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-29 22:02:55 +0200 |
| commit | 842e7b249b78d4e9d55ff2522173ed396a63620b (patch) | |
| tree | b66a0a98596b311c67b0cededf93e209e5d21dce /scripts | |
| parent | 1e9438883eaacd698eafe2a62a8906c595328975 (diff) | |
| download | mastodon_ynh-842e7b249b78d4e9d55ff2522173ed396a63620b.tar.gz mastodon_ynh-842e7b249b78d4e9d55ff2522173ed396a63620b.tar.bz2 mastodon_ynh-842e7b249b78d4e9d55ff2522173ed396a63620b.zip | |
[FIX] Switch to tagged release
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/install | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/install b/scripts/install index d58f08e..55ab135 100644 --- a/scripts/install +++ b/scripts/install @@ -83,15 +83,16 @@ ynh_psql_create_db_without_password "$app" sudo systemctl restart postgresql # 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 -pushd $final_path/live -git checkout $(git tag | tail -n 1) 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 |
