From a037d596a8366347760e11ca8fd1ff5583a029ab Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 21 Jul 2023 21:20:49 +0200 Subject: [PATCH] git --- app.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.sh b/app.sh index 34dfe65..78296fc 100644 --- a/app.sh +++ b/app.sh @@ -42,7 +42,7 @@ while true ; do echo clone pwd - git clone "$GIT_REPO_URL" "$GIT_REPO_PATH" --quiet + GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git clone "$GIT_REPO_URL" "$GIT_REPO_PATH" --quiet cd "$GIT_REPO_PATH" # Save the current value of IFS to restore later @@ -74,7 +74,7 @@ while true ; do git commit -m "update config_${FQDN}" --quiet done <<< "$DEVICES" - git push + GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git push # Restore the original IFS value IFS=$OLD_IFS