From 826e05328d7c909a2afc327f9d811b19162d0458 Mon Sep 17 00:00:00 2001 From: nemsia Date: Mon, 8 May 2017 14:48:11 +0200 Subject: [PATCH] [enh] Switch branch with mastodon user --- scripts/install | 7 +++++-- scripts/upgrade | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 39cbaa5..0c71505 100644 --- a/scripts/install +++ b/scripts/install @@ -93,9 +93,12 @@ git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/rub git clone https://github.com/tootsuite/mastodon.git $final_path/live CLONECOMMANDS -# Switch to tagged release +# Switch branch to tagged release cd $final_path/live -sudo git checkout $(git tag | tail -n 1) +sudo su - $app <