1
mirror of https://github.com/jakejarvis/mastodon-utils.git synced 2025-04-25 22:45:22 -04:00
2022-12-09 23:17:35 -05:00
2022-12-11 10:04:28 -05:00
2022-12-09 23:21:01 -05:00
2022-12-07 10:53:18 -05:00
2022-12-12 10:25:40 -05:00

🦣 Mastodon randomness

Random opinionated helper scripts & front-end customizations for my personal Mastodon instance (running on glitch-soc). You definitely don't want to use any of this as-is — check out my more general purpose mastodon-installer scripts instead.

Notes

The wiki of this repo and the /etc folder are simply my way of not forgetting how I did something, which I do quite a bit. Refer there for random notes on PgBouncer, Grafana, etc. but DO NOT BLINDLY COPY & PASTE anything there without doing your own research!

Usage

AGAIN, DEFINITELY DO NOT JUST RUN THIS IF YOU'RE NOT ME!!! 😊

git clone https://github.com/jakejarvis/mastodon-scripts.git /home/mastodon/scripts

# apply vanilla patches:
cd /home/mastodon/live
git apply --allow-binary-replacement /home/mastodon/scripts/patches/*.patch

# apply glitch-only patches:
if [ -d /home/mastodon/live/app/javascript/flavours/glitch ]; then
  git apply --allow-binary-replacement /home/mastodon/scripts/patches/glitch/*.patch
fi

# compile new assets:
RAILS_ENV=production bundle exec rails assets:precompile
chown -R mastodon:mastodon /home/mastodon/{scripts,live}

# restart Mastodon:
systemctl restart mastodon-*

Patches

License

MIT

Description
🦣 Small opinionated helper scripts, patches, and configs for Mastodon
https://fediverse.jarv.is/about Readme MIT 4.5 MiB
Languages
Shell 100%