mirror of
https://github.com/jakejarvis/mastodon-installer.git
synced 2025-04-28 07:30:29 -04:00
support glitch-soc in upgrade script
This commit is contained in:
parent
85c1d27fd5
commit
aa46cabb7c
12
upgrade.sh
12
upgrade.sh
@ -20,8 +20,16 @@ sudo DEBIAN_FRONTEND=noninteractive apt upgrade -y
|
|||||||
|
|
||||||
# pull latest mastodon source
|
# pull latest mastodon source
|
||||||
cd "$MASTODON_ROOT/live"
|
cd "$MASTODON_ROOT/live"
|
||||||
sudo -u mastodon git fetch --tags
|
sudo -u mastodon git fetch --all
|
||||||
sudo -u mastodon git checkout "$(sudo -u mastodon git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)"
|
sudo -u mastodon git stash push --message "pre-upgrade changes" || true
|
||||||
|
if [ -d "$MASTODON_ROOT/live/app/javascript/flavours/glitch" ]; then
|
||||||
|
# glitch-soc (uses latest commits)
|
||||||
|
echo "glitch-soc detected, applying latest commits from there instead..."
|
||||||
|
sudo -u mastodon git checkout glitch-soc/main
|
||||||
|
else
|
||||||
|
# vanilla Mastodon (uses latest release)
|
||||||
|
sudo -u mastodon git checkout "$(sudo -u mastodon git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)"
|
||||||
|
fi
|
||||||
|
|
||||||
# set new ruby version
|
# set new ruby version
|
||||||
RUBY_VERSION="$(sudo -u mastodon cat $MASTODON_ROOT/live/.ruby-version)"
|
RUBY_VERSION="$(sudo -u mastodon cat $MASTODON_ROOT/live/.ruby-version)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user