From 0dc9b383a7fe3c96822c97f7e07f907b40047c42 Mon Sep 17 00:00:00 2001 From: nemsia Date: Sun, 21 May 2017 22:15:31 +0200 Subject: [PATCH] [enh] Checkout 1.4 --- scripts/upgrade | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3c1c256..c1b2d2b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -40,7 +40,7 @@ sudo systemctl stop mastodon-*.service # Change owner of live folder sudo chown -R $app: $final_path/live -# upgrade Node.js v4 to v6 +# upgrade Node.js v4 to v6 node_version=$(nodejs --version) if [[ $node_version =~ ^v4.*$ ]]; then pushd /opt @@ -58,11 +58,9 @@ PULLCOMMANDS # Switch branch to tagged release cd $final_path/live -url=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | sort -r | head -1 | cut -d\" -f4) -version=$(echo $url | cut -d/ -f8) sudo su - $app <