From 6c5bdc8ac763a7526b10fe5f446329a268302156 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 24 Jun 2024 21:56:28 +0900 Subject: [PATCH] Update DERP relay scripts --- nixos/hosts/frankfurt-linode-01/containers/derp.nix | 2 +- nixos/hosts/milan-linode-01/containers/derp.nix | 2 +- nixos/hosts/osaka-linode-01/containers/derp.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/hosts/frankfurt-linode-01/containers/derp.nix b/nixos/hosts/frankfurt-linode-01/containers/derp.nix index a54261d0..42f956b7 100644 --- a/nixos/hosts/frankfurt-linode-01/containers/derp.nix +++ b/nixos/hosts/frankfurt-linode-01/containers/derp.nix @@ -2,7 +2,7 @@ services.cron = { enable = true; systemCronJobs = [ - ''0 0 * * * root rsync -avr root@framework-server:/Storage/Data/Docker/sysctl.io/letsencrypt/ /Storage/Data/Docker/sysctl.io/letsencrypt/'' + ''0 0 * * * root mkdir -p /Storage/Data/Docker/sysctl.io/letsencrypt/; rsync -avr root@framework-server:/Storage/Data/Docker/sysctl.io/letsencrypt/ /Storage/Data/Docker/sysctl.io/letsencrypt/'' ]; }; diff --git a/nixos/hosts/milan-linode-01/containers/derp.nix b/nixos/hosts/milan-linode-01/containers/derp.nix index e16f4c0b..f996dfb5 100644 --- a/nixos/hosts/milan-linode-01/containers/derp.nix +++ b/nixos/hosts/milan-linode-01/containers/derp.nix @@ -2,7 +2,7 @@ services.cron = { enable = true; systemCronJobs = [ - ''0 0 * * * root rsync -avr root@framework-server:/Storage/Data/Docker/sysctl.io/letsencrypt/ /Storage/Data/Docker/sysctl.io/letsencrypt/'' + ''0 0 * * * root mkdir -p /Storage/Data/Docker/sysctl.io/letsencrypt/; rsync -avr root@framework-server:/Storage/Data/Docker/sysctl.io/letsencrypt/ /Storage/Data/Docker/sysctl.io/letsencrypt/'' ]; }; diff --git a/nixos/hosts/osaka-linode-01/containers/derp.nix b/nixos/hosts/osaka-linode-01/containers/derp.nix index 0cefc0c8..204bd1ba 100644 --- a/nixos/hosts/osaka-linode-01/containers/derp.nix +++ b/nixos/hosts/osaka-linode-01/containers/derp.nix @@ -2,7 +2,7 @@ services.cron = { enable = true; systemCronJobs = [ - ''0 0 * * * root rsync -avr root@framework-server:/Storage/Data/Docker/sysctl.io/letsencrypt/ /Storage/Data/Docker/sysctl.io/letsencrypt/'' + ''0 0 * * * root mkdir -p /Storage/Data/Docker/sysctl.io/letsencrypt/; rsync -avr root@framework-server:/Storage/Data/Docker/sysctl.io/letsencrypt/ /Storage/Data/Docker/sysctl.io/letsencrypt/'' ]; };