diff options
| -rw-r--r-- | scripts/install | 3 | ||||
| -rw-r--r-- | scripts/upgrade | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install index d9430a9..3d5172f 100644 --- a/scripts/install +++ b/scripts/install @@ -102,9 +102,10 @@ CLONECOMMANDS # Switch branch to tagged release cd $final_path/live +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 -l | sort -V | tail -n 1) +git checkout $version SWITCHCOMMANDS # Be king rewind (/var/cache/yunohost/from_file/scripts) diff --git a/scripts/upgrade b/scripts/upgrade index 6ab3a13..8e33ce8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,9 +50,10 @@ PULLCOMMANDS # Switch branch to tagged release cd $final_path/live +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 -l | sort -V | tail -n 1) +git checkout $version SWITCHCOMMANDS # upgrade Node.js v4 to v6 |
