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