summaryrefslogtreecommitdiff
path: root/clean_media.sh
diff options
context:
space:
mode:
authordoc <doc@filenotfound.org>2025-06-30 20:11:52 +0000
committerdoc <doc@filenotfound.org>2025-06-30 20:11:52 +0000
commit41e897f4945aaf8fbcdf0b12ac2f08c5e6ae0458 (patch)
treedb7c3520fd91abc3cf56b1a52095d23f3a80d059 /clean_media.sh
commit of legacy codeHEADmaster
Diffstat (limited to 'clean_media.sh')
-rwxr-xr-xclean_media.sh4
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