add nextcloud-client and pre-gen cron
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user