mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
[FIX] Switch to tagged release
This commit is contained in:
parent
1e9438883e
commit
842e7b249b
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue