Created
July 17, 2023 19:51
-
-
Save glacials/cd21aa4cfbc535777adeb0b2f01c5f10 to your computer and use it in GitHub Desktop.
Update Mastodon (Debian, no Docker)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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