From 0397da0a408bf2d2cb3d7775f7863cb907c08496 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 10 Dec 2023 16:04:28 +0900 Subject: [PATCH] test --- nixos/hosts/framework-server/cron.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/hosts/framework-server/cron.nix b/nixos/hosts/framework-server/cron.nix index 69def89a..df4e0b09 100644 --- a/nixos/hosts/framework-server/cron.nix +++ b/nixos/hosts/framework-server/cron.nix @@ -13,7 +13,7 @@ # Back up the docker containers weekly: ''@weekly root ssh nuc-docker01 "rm -rf /Storage/Backups/Docker/sysctl.io/*"; for i in $(docker ps --format '{{.Names}}'); do docker export $i | gzip -cf | ssh root@nuc-docker01 "cat > /Storage/Backups/Docker/sysctl.io/$i.tar.gz"; done'' # Set a random Pi-Hole password - ''* * * * * /usr/bin/docker exec pihole sudo pihole -a -p $(openssl rand -hex 128)'' + ''* * * * * root docker exec pihole sudo pihole -a -p $(openssl rand -hex 128)'' # Run the ClamAV scan ''@monthly root /Storage/Data/docker-compose/sysctl.io/scripts/clamscan-cron.sh'' # Back up Loki logs monthly