aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2022-02-15 19:50:49 +0100
committeryalh76 <yalh@yahoo.com>2022-02-15 19:50:49 +0100
commit20b6b09fe08ba5e42ff9f817af81293bf3670f13 (patch)
treed870706000bc5db2d11adb89c5c908931c1691c0
parent1b673025afc250f0f421428f1aab3a23eb7e5281 (diff)
parent184bb6ea22f23d9c068cd9a03b9498c30cd3cdef (diff)
downloadmastodon_ynh-20b6b09fe08ba5e42ff9f817af81293bf3670f13.tar.gz
mastodon_ynh-20b6b09fe08ba5e42ff9f817af81293bf3670f13.tar.bz2
mastodon_ynh-20b6b09fe08ba5e42ff9f817af81293bf3670f13.zip
Merge branch 'testing' of https://github.com/YunoHost-Apps/mastodon_ynh into testing
-rw-r--r--conf/cron12
1 files changed, 7 insertions, 5 deletions
diff --git a/conf/cron b/conf/cron
index c5f1af0..339d3c4 100644
--- a/conf/cron
+++ b/conf/cron
@@ -1,5 +1,7 @@
-@daily cd __FINAL_PATH__/live && sudo -u __APP__ __YNH_RUBY_LOAD_PATH__ __LD_PRELOAD__ RAILS_ENV=production bin/tootctl media remove
-@monthly cd __FINAL_PATH__/live && sudo -u __APP__ __YNH_RUBY_LOAD_PATH__ __LD_PRELOAD__ RAILS_ENV=production bin/tootctl media remove-orphans
-@monthly cd __FINAL_PATH__/live && sudo -u __APP__ __YNH_RUBY_LOAD_PATH__ __LD_PRELOAD__ RAILS_ENV=production bin/tootctl accounts cull
-@monthly cd __FINAL_PATH__/live && sudo -u __APP__ __YNH_RUBY_LOAD_PATH__ __LD_PRELOAD__ RAILS_ENV=production bin/tootctl statuses remove
-@monthly cd __FINAL_PATH__/live && sudo -u __APP__ __YNH_RUBY_LOAD_PATH__ __LD_PRELOAD__ RAILS_ENV=production bin/tootctl preview_cards remove
+# This is a system cron file, see crontab(5)
+# m h dom mon dow user command
+@daily __APP__ cd __FINAL_PATH__/live && __YNH_RUBY_LOAD_PATH__ __LD_PRELOAD__ RAILS_ENV=production bin/tootctl media remove
+@monthly __APP__ cd __FINAL_PATH__/live && __YNH_RUBY_LOAD_PATH__ __LD_PRELOAD__ RAILS_ENV=production bin/tootctl media remove-orphans
+@monthly __APP__ cd __FINAL_PATH__/live && __YNH_RUBY_LOAD_PATH__ __LD_PRELOAD__ RAILS_ENV=production bin/tootctl accounts cull
+@monthly __APP__ cd __FINAL_PATH__/live && __YNH_RUBY_LOAD_PATH__ __LD_PRELOAD__ RAILS_ENV=production bin/tootctl statuses remove
+@monthly __APP__ cd __FINAL_PATH__/live && __YNH_RUBY_LOAD_PATH__ __LD_PRELOAD__ RAILS_ENV=production bin/tootctl preview_cards remove