mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
[enh] Switch to tagged release
This commit is contained in:
parent
e1bf40f646
commit
e7ed942684
1 changed files with 5 additions and 1 deletions
|
@ -85,13 +85,17 @@ sudo su -c "psql" postgres <<< \
|
||||||
ynh_psql_create_db_without_password "$app"
|
ynh_psql_create_db_without_password "$app"
|
||||||
sudo systemctl restart postgresql
|
sudo systemctl restart postgresql
|
||||||
|
|
||||||
# Download all Ruby source
|
# Download all sources rbenv, ruby and mastodon
|
||||||
sudo su - $app <<CLONECOMMANDS
|
sudo su - $app <<CLONECOMMANDS
|
||||||
git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv
|
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/rbenv/ruby-build.git $final_path/.rbenv/plugins/ruby-build
|
||||||
git clone https://github.com/tootsuite/mastodon.git $final_path/live
|
git clone https://github.com/tootsuite/mastodon.git $final_path/live
|
||||||
CLONECOMMANDS
|
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)
|
# Be king rewind (/var/cache/yunohost/from_file/scripts)
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue