infrastructure/ansible/roles/mastodon/files/purge-media.sh

11 lines
285 B
Bash
Raw Normal View History

2023-01-29 19:46:47 +00:00
#!/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