mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
Run cron tasks as weblate instead of root
This commit is contained in:
parent
f88c29ddf9
commit
872bdaff6c
1 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
# https://docs.weblate.org/en/latest/admin/install.html#production-cron
|
||||
# Fulltext index updates
|
||||
10 * * * * root DJANGO_SETTINGS_MODULE="weblate.settings" __FINALPATH__/venv/bin/weblate update_index
|
||||
*/5 * * * * weblate DJANGO_SETTINGS_MODULE="weblate.settings" __FINALPATH__/venv/bin/weblate update_index
|
||||
|
||||
# Cleanup stale objects
|
||||
@daily root DJANGO_SETTINGS_MODULE="weblate.settings" __FINALPATH__/venv/bin/weblate cleanuptrans
|
||||
@daily weblate DJANGO_SETTINGS_MODULE="weblate.settings" __FINALPATH__/venv/bin/weblate cleanuptrans
|
||||
|
||||
# Commit pending changes after 96 hours
|
||||
@hourly root DJANGO_SETTINGS_MODULE="weblate.settings" __FINALPATH__/venv/bin/weblate commit_pending --all --age=96 --verbosity=0
|
||||
@hourly weblate DJANGO_SETTINGS_MODULE="weblate.settings" __FINALPATH__/venv/bin/weblate commit_pending --all --age=96 --verbosity=0
|
||||
|
|
Loading…
Reference in a new issue