aboutsummaryrefslogtreecommitdiff
path: root/scripts/upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/upgrade')
-rw-r--r--scripts/upgrade3
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)