From e00236e7c3900f1ade6498a014baccd875d0731c Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sun, 8 Dec 2024 11:49:06 +0100 Subject: [PATCH] Fix again ssh key --- docker/deployer_docker/webhook/gitea-webhook-handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/deployer_docker/webhook/gitea-webhook-handler.py b/docker/deployer_docker/webhook/gitea-webhook-handler.py index 2def9c8..e91be0c 100644 --- a/docker/deployer_docker/webhook/gitea-webhook-handler.py +++ b/docker/deployer_docker/webhook/gitea-webhook-handler.py @@ -24,8 +24,8 @@ GIT_ENV = os.environ.copy() if GIT_AUTH_MODE == 'http': auth_option = [] elif GIT_AUTH_MODE == 'ssh': - GIT_ENV["GIT_SSH_COMMAND"] = "ssh -i /ssh/ssh-key" - auth_option=['-o','StrictHostKeyChecking=accept-new'] + GIT_ENV["GIT_SSH_COMMAND"] = "ssh -i /ssh/ssh-key -o StrictHostKeyChecking=accept-new" + auth_option=[] else: raise ValueError("Invalid GIT_AUTH_MODE")