From e3926a01bf774d7f34d7fb95c1eacaada81a6060 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 28 Dec 2020 19:10:05 -0300 Subject: default.nix: Delete remote files It seems that some torrent files aren't being updated as desired. --- default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/default.nix b/default.nix index 443d2c8..79c104a 100644 --- a/default.nix +++ b/default.nix @@ -84,6 +84,7 @@ in rec { SERVER_URL='root@euandre.org' REMOTE_PATH='/home/user-data/www/default/' OUT_DOCS='${site}' + ${pkgs.openssh}/bin/ssh "$SERVER_URL" rm -rf "$REMOTE_PATH/*" ${pkgs.rsync}/bin/rsync -avzP \ --rsh="ssh -o StrictHostKeyChecking=no" \ "$OUT_DOCS/" \ -- cgit v1.2.3