From 44e82005c4538de053b4a91f1d4f2c4725159365 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 21 Jul 2022 13:39:04 +0000 Subject: [PATCH] fix: typo --- apps/api/src/routes/api/v1/destinations/handlers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/routes/api/v1/destinations/handlers.ts b/apps/api/src/routes/api/v1/destinations/handlers.ts index f97c44586..d9674f130 100644 --- a/apps/api/src/routes/api/v1/destinations/handlers.ts +++ b/apps/api/src/routes/api/v1/destinations/handlers.ts @@ -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()