diff options
author | doc <doc@filenotfound.org> | 2025-06-30 20:11:52 +0000 |
---|---|---|
committer | doc <doc@filenotfound.org> | 2025-06-30 20:11:52 +0000 |
commit | 41e897f4945aaf8fbcdf0b12ac2f08c5e6ae0458 (patch) | |
tree | db7c3520fd91abc3cf56b1a52095d23f3a80d059 /clean_media.sh |
Diffstat (limited to 'clean_media.sh')
-rwxr-xr-x | clean_media.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clean_media.sh b/clean_media.sh new file mode 100755 index 0000000..fc914ee --- /dev/null +++ b/clean_media.sh @@ -0,0 +1,4 @@ +#!/bin/bash +cd /home/mastodon/live +PATH=/home/mastodon/bin:/home/mastodon/.local/bin:/home/mastodon/.rbenv/plugins/ruby-build/bin:/home/mastodon/.rbenv/shims:/home/mastodon/.rbenv/bin:/usr/bin:/bin +RAILS_ENV=production bin/tootctl media remove --days=1 > log/media_remove.log 2>&1 |