Add mastodon cleanup script
This commit is contained in:
10
ansible/roles/mastodon/files/purge-media.sh
Normal file
10
ansible/roles/mastodon/files/purge-media.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
cd /opt/mastodon
|
||||
|
||||
docker-compose exec mastodon tootctl media remove --days=7
|
||||
docker-compose exec mastodon tootctl statuses remove --days=7
|
||||
docker-compose exec mastodon tootctl preview_cards remove --days=7
|
||||
docker-compose exec mastodon tootctl cache clear
|
Reference in New Issue
Block a user