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()