Skip to content

Instantly share code, notes, and snippets.

@glacials
Created July 17, 2023 19:51
Show Gist options
  • Save glacials/cd21aa4cfbc535777adeb0b2f01c5f10 to your computer and use it in GitHub Desktop.
Save glacials/cd21aa4cfbc535777adeb0b2f01c5f10 to your computer and use it in GitHub Desktop.
Update Mastodon (Debian, no Docker)
if [[ $1 = '' ]]; then
echo "usage: $0 <version>"
echo " $0 restart"
echo ""
echo "example:"
echo " $0 v3.1.2"
exit
fi
if [[ $1 = restart ]]; then
sudo systemctl restart mastodon-sidekiq
sudo systemctl reload mastodon-web
sudo systemctl restart mastodon-streaming
exit
fi
cd /home/mastodon/live
git fetch --tags
git checkout $1
echo "Now follow the release notes, then run '$0 restart'."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment