From cabe29a6d441e8b6eb6ecbba8b7ee44ed6153ee5 Mon Sep 17 00:00:00 2001 From: Sadiq Saif Date: Thu, 21 Feb 2019 11:27:26 -0500 Subject: [PATCH] Change media cache cleanup cronjob to use tootctl --- roles/mastodon-config/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mastodon-config/tasks/main.yml b/roles/mastodon-config/tasks/main.yml index ff7f294..54118f0 100644 --- a/roles/mastodon-config/tasks/main.yml +++ b/roles/mastodon-config/tasks/main.yml @@ -28,7 +28,7 @@ cron: name: "Mastodon media cache cleanup" special_time: daily - job: "cd /home/mastodon/live && RAILS_ENV=production /home/mastodon/.rbenv/shims/bundle exec rake mastodon:media:remove_remote" + job: "cd /home/mastodon/live && RAILS_ENV=production /home/mastodon/.rbenv/shims/bundle exec /home/mastodon/live/bin/tootctl media remove backup: yes state: present become: true