From: Ismaƫl Bouya Date: Mon, 11 Feb 2019 09:19:52 +0000 (+0100) Subject: Add cron background job for nextcloud X-Git-Tag: nur_publish~244 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=commitdiff_plain;h=9c35092c38b2e3eface664c157e65a9b6d1b56e2 Add cron background job for nextcloud Fixes https://git.immae.eu/mantisbt/view.php?id=120 --- diff --git a/nixops/modules/websites/tools/cloud/default.nix b/nixops/modules/websites/tools/cloud/default.nix index 0c6d13d..f014776 100644 --- a/nixops/modules/websites/tools/cloud/default.nix +++ b/nixops/modules/websites/tools/cloud/default.nix @@ -43,5 +43,14 @@ in { poolConfigs.nextcloud = nextcloud.phpFpm.pool; }; + services.cron = { + enable = true; + systemCronJobs = [ + '' + LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive + */15 * * * * wwwrun ${pkgs.php}/bin/php -f ${nextcloud.webRoot}/cron.php + '' + ]; + }; }; }