fix: typo

This commit is contained in:
Andras Bacsai 2022-07-21 13:39:04 +00:00
parent 7ba550945e
commit 44e82005c4

View File

@ -239,14 +239,14 @@ export async function verifyRemoteDockerEngine(request: FastifyRequest, reply: F
} catch (error) {
await fs.mkdir(`${homedir}/.ssh/`)
}
await fs.writeFile(`${homedir}.ssh/config`, sshConfig.stringify(config))
await fs.writeFile(`${homedir}/.ssh/config`, sshConfig.stringify(config))
const { stdout } = await asyncExecShell(`DOCKER_HOST=${host} docker network ls --filter 'name=${network}' --no-trunc --format "{{json .}}"`);
if (!stdout) {
await asyncExecShell(`DOCKER_HOST=${host} docker network create --attachable ${network}`);
}
await prisma.destinationDocker.update({ where: { id }, data: { remoteVerified: true } })
return reply.code(201).send()