From ff31ac7cb0e78f9e020aea7eb0a1a335c8fa08e2 Mon Sep 17 00:00:00 2001 From: VC Date: Sun, 9 Feb 2025 12:09:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5:=20remove=20profiles/previews=20mo?= =?UTF-8?q?re=20often?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/mastodon/templates/remove_media.sh.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/mastodon/templates/remove_media.sh.j2 b/roles/mastodon/templates/remove_media.sh.j2 index 75e8538..007886b 100644 --- a/roles/mastodon/templates/remove_media.sh.j2 +++ b/roles/mastodon/templates/remove_media.sh.j2 @@ -1,6 +1,6 @@ #!/bin/bash cd {{ mastodon_home }}/live PATH={{ mastodon_home }}/bin:{{ mastodon_home }}/.local/bin:{{ mastodon_home }}/.rbenv/plugins/ruby-build/bin:{{ mastodon_home }}/.rbenv/shims:{{ mastodon_home }}/.rbenv/bin:/usr/bin:/bin -RAILS_ENV=production bin/tootctl media remove -RAILS_ENV=production bin/tootctl media remove --days=45 --prune-profiles -RAILS_ENV=production bin/tootctl preview_cards remove +RAILS_ENV=production bin/tootctl media remove --days=7 +RAILS_ENV=production bin/tootctl media remove --days=7 --prune-profiles +RAILS_ENV=production bin/tootctl preview_cards remove --days=30