diff options
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 |