aboutsummaryrefslogtreecommitdiff
path: root/conf/cron
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2022-01-07 19:41:59 +0100
committerGitHub <noreply@github.com>2022-01-07 19:41:59 +0100
commitfa8a9d4eed460fa73926e7874313091dffb7b9fc (patch)
tree155293eb2bf6b881ab4bae9490440bd2125cdfec /conf/cron
parentadec07db890dec787416e1b7c4493d24391d3500 (diff)
parent1476f17251ea0b339390cfa5210e258342ea5a4a (diff)
downloadmastodon_ynh-fa8a9d4eed460fa73926e7874313091dffb7b9fc.tar.gz
mastodon_ynh-fa8a9d4eed460fa73926e7874313091dffb7b9fc.tar.bz2
mastodon_ynh-fa8a9d4eed460fa73926e7874313091dffb7b9fc.zip
Merge pull request #290 from YunoHost-Apps/testing
Upgrade to 3.4.4
Diffstat (limited to 'conf/cron')
-rw-r--r--conf/cron10
1 files changed, 5 insertions, 5 deletions
diff --git a/conf/cron b/conf/cron
index 776808b..710e7f0 100644
--- a/conf/cron
+++ b/conf/cron
@@ -1,5 +1,5 @@
-@daily cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl media remove
-@monthly cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl media remove-orphans
-@monthly cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl accounts cull
-@monthly cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl statuses remove
-@monthly cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl preview_cards remove
+@daily cd __FINAL_PATH__/live && sudo -u __APP__ __YNH_RUBY_LOAD_PATH__ RAILS_ENV=production bin/tootctl media remove
+@monthly cd __FINAL_PATH__/live && sudo -u __APP__ __YNH_RUBY_LOAD_PATH__ RAILS_ENV=production bin/tootctl media remove-orphans
+@monthly cd __FINAL_PATH__/live && sudo -u __APP__ __YNH_RUBY_LOAD_PATH__ RAILS_ENV=production bin/tootctl accounts cull
+@monthly cd __FINAL_PATH__/live && sudo -u __APP__ __YNH_RUBY_LOAD_PATH__ RAILS_ENV=production bin/tootctl statuses remove
+@monthly cd __FINAL_PATH__/live && sudo -u __APP__ __YNH_RUBY_LOAD_PATH__ RAILS_ENV=production bin/tootctl preview_cards remove