You've already forked mastodon-installer
mirror of
https://github.com/jakejarvis/mastodon-installer.git
synced 2025-06-27 15:15:40 -04:00
add weekly clean-up tasks
This commit is contained in:
@ -157,6 +157,12 @@ sudo -u mastodon RAILS_ENV=production "$RBENV_ROOT/shims/ruby" "$MASTODON_ROOT/l
|
||||
--role Owner \
|
||||
--confirmed
|
||||
|
||||
# set cleanup tasks to run weekly
|
||||
# https://docs.joinmastodon.org/admin/setup/#cleanup
|
||||
echo "# Added by mastodon-installer @ $(date)
|
||||
@weekly mastodon RAILS_ENV=production $RBENV_ROOT/shims/ruby $MASTODON_ROOT/live/bin/tootctl media remove
|
||||
@weekly mastodon RAILS_ENV=production $RBENV_ROOT/shims/ruby $MASTODON_ROOT/live/bin/tootctl preview_cards remove" | sudo tee -a /etc/cron.d/mastodon >/dev/null
|
||||
|
||||
echo "🎉 All done!"
|
||||
echo -e "\nSign in here as '$MASTODON_ADMIN_EMAIL' with the password above 👆:"
|
||||
echo "https://$MASTODON_DOMAIN/auth/sign_in"
|
||||
|
Reference in New Issue
Block a user