add nextcloud-client and pre-gen cron
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
d323c88583
commit
2853f786a8
17
systems/palatine-hill/cron/default.nix
Normal file
17
systems/palatine-hill/cron/default.nix
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.cron.enable = true;
|
||||||
|
services.cron.cronFiles = [ /etc/rad-dev/nextcloud-cron ];
|
||||||
|
environment.etc.nextcloud-cron = {
|
||||||
|
text = ''
|
||||||
|
*/10 * * * * docker ps --format "{{.Names}}" | grep -q "^nextcloud-nextcloud-1$" && docker exec --user www-data nextcloud-nextcloud-1 php occ preview:pre-generate
|
||||||
|
'';
|
||||||
|
target = /etc/rad-dev/nextcloud-cron;
|
||||||
|
};
|
||||||
|
}
|
@ -53,5 +53,7 @@
|
|||||||
nodejs_20
|
nodejs_20
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
treefmt
|
treefmt
|
||||||
|
|
||||||
|
nextcloud-client
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user