From 24aa1bc3d1d197e319b9a97b0af4d961ae85d45c Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 21 Jul 2023 20:43:47 +0200 Subject: [PATCH] -o StrictHostKeyChecking=no --- app.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app.sh b/app.sh index 71d10fa..6fdabca 100644 --- a/app.sh +++ b/app.sh @@ -17,9 +17,6 @@ FAILFILE=$(mktemp) while true ; do - # Healthcheck - echo "" > "$FAILFILE" - # Checks if [ -z "$GIT_REPO_PATH" ] ; then echo "GIT_REPO_PATH is not set." @@ -29,7 +26,6 @@ while true ; do echo "INTERVAL is not set." exit 3 fi - if [ -z "$GIT_REPO_BRANCH" ] ; then echo "GIT_REPO_BRANCH is not set." exit 3 @@ -82,7 +78,7 @@ while true ; do exit 2 fi echo "export $FQDN config" - ssh -n -i "$SSH_KEY_PATH" "$FQDN" "/export show-sensitive" > "config_${FQDN}.rsc" + ssh -n -o StrictHostKeyChecking=no -i "$SSH_KEY_PATH" "$FQDN" "/export show-sensitive" > "config_${FQDN}.rsc" # entferne Datumszeile sed -i -r '/^# [0-9]{4}-[0-9]{2}-[0-9]{2}\s[0-9]{2}\:[0-9]{2}\:[0-9]{2}\sby\sRouterOS\s[0-9\s\.]+/d' "config_${FQDN}.rsc" git add "config_${FQDN}.rsc"