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