diff options
| author | nemsia <nemsia@nemsia.org> | 2017-05-29 21:24:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-29 21:24:43 +0200 |
| commit | 7b5077419be7e5cc5f682fac3b80d23f565e6296 (patch) | |
| tree | 35833307c824f96651b09034ace2be32e724e298 /scripts/upgrade | |
| parent | 165c4cd07d175e4618b761532a0376e845b89daa (diff) | |
| download | mastodon_ynh-7b5077419be7e5cc5f682fac3b80d23f565e6296.tar.gz mastodon_ynh-7b5077419be7e5cc5f682fac3b80d23f565e6296.tar.bz2 mastodon_ynh-7b5077419be7e5cc5f682fac3b80d23f565e6296.zip | |
[fix] upgrade and install 1.4.1 (#40)
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index 5be8dbe..a741c4d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,11 +50,10 @@ 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) +version=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | grep tag_name | cut -d\" -f4) sudo su - $app <<SWITCHCOMMANDS pushd ~/live -git checkout $(git tag | tail -n 1) +git checkout $version SWITCHCOMMANDS # upgrade Node.js v4 to v6 |
