mirror of
https://git.cloudron.io/cloudron/mastodon-app.git
synced 2024-11-25 17:21:00 +00:00
Also purge preview-cards cache and orphaned media
This commit is contained in:
parent
49b7133ad4
commit
87e0460613
1 changed files with 10 additions and 3 deletions
13
cleanup.sh
13
cleanup.sh
|
@ -2,7 +2,14 @@
|
|||
|
||||
set -eu
|
||||
|
||||
echo "=> Cleanup cached media"
|
||||
|
||||
echo "=> Cleanup"
|
||||
cd /app/code
|
||||
./bin/tootctl media remove
|
||||
|
||||
echo "==> media cache ..."
|
||||
./bin/tootctl media remove --days=7
|
||||
|
||||
echo "==> orphaned media ..."
|
||||
./bin/tootctl media remove-orphans
|
||||
|
||||
echo "==> preview cards.."
|
||||
./bin/tootctl preview-cards remove --days=7
|
||||
|
|
Loading…
Reference in a new issue