aboutsummaryrefslogtreecommitdiff
path: root/nixops
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-11 10:19:52 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-11 10:19:52 +0100
commit9c35092c38b2e3eface664c157e65a9b6d1b56e2 (patch)
tree12edfec3f31dd49701678d02091977390ba16016 /nixops
parentacaf5190dfc41c6e5528f73017d56aed31b86117 (diff)
downloadNix-9c35092c38b2e3eface664c157e65a9b6d1b56e2.tar.gz
Nix-9c35092c38b2e3eface664c157e65a9b6d1b56e2.tar.zst
Nix-9c35092c38b2e3eface664c157e65a9b6d1b56e2.zip
Add cron background job for nextcloud
Fixes https://git.immae.eu/mantisbt/view.php?id=120
Diffstat (limited to 'nixops')
-rw-r--r--nixops/modules/websites/tools/cloud/default.nix9
1 files changed, 9 insertions, 0 deletions
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 {
43 poolConfigs.nextcloud = nextcloud.phpFpm.pool; 43 poolConfigs.nextcloud = nextcloud.phpFpm.pool;
44 }; 44 };
45 45
46 services.cron = {
47 enable = true;
48 systemCronJobs = [
49 ''
50 LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive
51 */15 * * * * wwwrun ${pkgs.php}/bin/php -f ${nextcloud.webRoot}/cron.php
52 ''
53 ];
54 };
46 }; 55 };
47} 56}