diff options
| author | nemsia <nemsia@nemsia.org> | 2017-04-28 18:07:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-28 18:07:45 +0200 |
| commit | 58661b14d2fe6ff2dc12b2c30607fc5407a3ccb5 (patch) | |
| tree | 7a46054227aa12637a3d74596399e4b24978d5c3 | |
| parent | e245bb18e477317a4ac0b68fdb55f6eb29a119ae (diff) | |
| download | mastodon_ynh-58661b14d2fe6ff2dc12b2c30607fc5407a3ccb5.tar.gz mastodon_ynh-58661b14d2fe6ff2dc12b2c30607fc5407a3ccb5.tar.bz2 mastodon_ynh-58661b14d2fe6ff2dc12b2c30607fc5407a3ccb5.zip | |
[fix] Upgrade on tagged release
| -rw-r--r-- | scripts/upgrade | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index 076e3fb..bd9c46a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,8 +38,9 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf sudo systemctl stop mastodon-*.service # Update Mastodon +pushd /opt/mastodon/live sudo su - $app <<COMMANDS -cd live +pushd ~/live git fetch git pull https://github.com/tootsuite/mastodon.git master git checkout $(git tag | tail -n 1) |
