From 6f29e081fa334a8fc06413f43ac2e586ce35a5d9 Mon Sep 17 00:00:00 2001 From: Javier Viola Date: Fri, 12 Jan 2024 09:58:34 -0300 Subject: [PATCH] skip old files to prevent permission issues when decompress db_snap (#1675) --- flake-module.nix | 2 +- .../packages/orchestrator/src/providers/k8s/kubeClient.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flake-module.nix b/flake-module.nix index b63afc60a..79a19d955 100644 --- a/flake-module.nix +++ b/flake-module.nix @@ -8,7 +8,7 @@ ... }: let # this change on each change of dependencies, unfortunately this hash not yet automatically updated from SRI of package.lock - npmDepsHash = "sha256-+J8ADyIxSNYQJ7gDgs+E5J5DUg4rQhwALYA59hWH1DU="; + npmDepsHash = "sha256-FyZm1oLugeJpUXNvbl/nfuvCRdXWG+SKrHXanm8dcmY="; #### # there is officia polkadot on nixpkgs, but it has no local rococo wasm to run diff --git a/javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts b/javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts index 62f967a4d..6c35f74e5 100644 --- a/javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts +++ b/javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts @@ -179,6 +179,7 @@ export class KubeClient extends Client { "/", "&&", "tar", + "--skip-old-files", "-xzvf", "/data/db.tgz", ].join(" "),