Browse Source

fix(clightning): fix permission denied error on linux

master
jamaljsr 5 years ago
parent
commit
bb3f0e3e6c
  1. 7
      src/lib/docker/dockerService.ts

7
src/lib/docker/dockerService.ts

@ -109,7 +109,12 @@ class DockerService implements DockerLibrary {
await ensureDir(nodePath(network, node.implementation, node.name)); await ensureDir(nodePath(network, node.implementation, node.name));
} }
for (const node of lightning) { for (const node of lightning) {
await ensureDir(nodePath(network, node.implementation, node.name)); const nodeDir = nodePath(network, node.implementation, node.name);
await ensureDir(nodeDir);
if (node.implementation === 'c-lightning') {
await ensureDir(join(nodeDir, 'data'));
await ensureDir(join(nodeDir, 'rest-api'));
}
} }
info(`Starting docker containers for ${network.name}`); info(`Starting docker containers for ${network.name}`);

Loading…
Cancel
Save