diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-11-12 07:14:01 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-11-12 07:14:01 +0100 |
commit | c418f62a4aba4a135143527369ad0460ccd9f582 (patch) | |
tree | a8ae9044ef301b8317d37076219f61e5af12c7cc /modules | |
parent | 0e118a8c5326134b6e421e2d23fba0f211f8d964 (diff) | |
download | Nix-c418f62a4aba4a135143527369ad0460ccd9f582.tar.gz Nix-c418f62a4aba4a135143527369ad0460ccd9f582.tar.zst Nix-c418f62a4aba4a135143527369ad0460ccd9f582.zip |
Fix nextcloud cron
Diffstat (limited to 'modules')
-rw-r--r-- | modules/private/websites/tools/cloud/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/private/websites/tools/cloud/default.nix b/modules/private/websites/tools/cloud/default.nix index fffe04c..99add80 100644 --- a/modules/private/websites/tools/cloud/default.nix +++ b/modules/private/websites/tools/cloud/default.nix | |||
@@ -177,10 +177,16 @@ in { | |||
177 | 177 | ||
178 | services.cron = { | 178 | services.cron = { |
179 | enable = true; | 179 | enable = true; |
180 | systemCronJobs = [ | 180 | systemCronJobs = let |
181 | script = pkgs.writeScriptBin "nextcloud-cron" '' | ||
182 | #! ${pkgs.stdenv.shell} | ||
183 | export LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive | ||
184 | export PATH=/run/wrappers/bin:$PATH | ||
185 | ${pkgs.php}/bin/php -f ${nextcloud}/cron.php | ||
186 | ''; | ||
187 | in [ | ||
181 | '' | 188 | '' |
182 | LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive | 189 | */15 * * * * wwwrun ${script}/bin/nextcloud-cron |
183 | */15 * * * * wwwrun ${pkgs.php}/bin/php -f ${nextcloud}/cron.php | ||
184 | '' | 190 | '' |
185 | ]; | 191 | ]; |
186 | }; | 192 | }; |