From cde608983647e6de13e070780546cce9cc3da23c Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 27 Oct 2020 07:21:41 -0700 Subject: [PATCH] fix: fix PATH in periodic cleanup cron jobs --- content/en/admin/setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/admin/setup.md b/content/en/admin/setup.md index 2bd37139..f56e65a0 100644 --- a/content/en/admin/setup.md +++ b/content/en/admin/setup.md @@ -54,8 +54,8 @@ First, run `crontab -e` to edit the cronfile for the `mastodon` user. (If you ge Next, add something like the following to the bottom of the file: - @weekly RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove - @weekly RAILS_ENV=production /home/mastodon/live/bin/tootctl preview_cards remove + @weekly PATH=/home/mastodon/.rbenv/shims:/home/mastodon/.rbenv/bin:/usr/local/bin:/usr/bin:/bin RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove + @weekly PATH=/home/mastodon/.rbenv/shims:/home/mastodon/.rbenv/bin:/usr/local/bin:/usr/bin:/bin RAILS_ENV=production /home/mastodon/live/bin/tootctl preview_cards remove This will run these two commands on a weekly basis.