diff options
| author | nemsia <nemsia@nemsia.org> | 2017-05-21 15:23:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-21 15:23:14 +0200 |
| commit | c7eb4ace251956c4ef69a3b4478c8611aab442fc (patch) | |
| tree | 4cb2a806abdea3b8297721c451d1de5866e431e3 /scripts | |
| parent | a074e13ef5da22c5880d31e37c7793d6c6c42b04 (diff) | |
| download | mastodon_ynh-c7eb4ace251956c4ef69a3b4478c8611aab442fc.tar.gz mastodon_ynh-c7eb4ace251956c4ef69a3b4478c8611aab442fc.tar.bz2 mastodon_ynh-c7eb4ace251956c4ef69a3b4478c8611aab442fc.zip | |
Upgrade with latest stable version (#31)
* [enh] Upgrade on latest
Upgrade with latest mastodon stable version
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/upgrade | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index f070bbd..d217de6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,9 +50,11 @@ 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 <<SWITCHCOMMANDS pushd ~/live -git checkout $(git tag | tail -n 1) +git checkout $version SWITCHCOMMANDS # Apply Mastodon upgrade |
