@fabioplunser/epd 0.5.9 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2716,7 +2716,7 @@ mv -f ${shq(path)}.tmp ${shq(path)}`, { label: `${this.name}: write ${path}` });
|
|
|
2716
2716
|
const local = localCommand.map((a) => shq(a)).join(" ");
|
|
2717
2717
|
const source = password ? `{ printf '%s\\n' "$EPD_SUDO_PW"; ${local}; }` : local;
|
|
2718
2718
|
const script = `set -euo pipefail; ${source} | ${sshArgs.map((a) => shq(a)).join(" ")}`;
|
|
2719
|
-
await run(["
|
|
2719
|
+
await run(["bash", "-c", script], {
|
|
2720
2720
|
stream: true,
|
|
2721
2721
|
label: `pipe \u2192 ${this.name}`,
|
|
2722
2722
|
env: password ? { EPD_SUDO_PW: password } : undefined
|
|
@@ -4112,7 +4112,7 @@ async function ensureImage(host, cfg, version) {
|
|
|
4112
4112
|
await host.exec(`docker pull ${shq(ref)} >/dev/null`, { label: `${host.name}: docker pull` });
|
|
4113
4113
|
} else {
|
|
4114
4114
|
log.host(host.name, `shipping ${ref} over ssh (no registry configured)`);
|
|
4115
|
-
await host.pipeInto("gunzip | docker load", ["
|
|
4115
|
+
await host.pipeInto("gunzip | docker load", ["bash", "-c", `docker save ${shq(ref)} | gzip -1`]);
|
|
4116
4116
|
}
|
|
4117
4117
|
}
|
|
4118
4118
|
async function pruneImages(host, cfg, keep, inUse) {
|
package/package.json
CHANGED