-o StrictHostKeyChecking=no

This commit is contained in:
Michael Grote 2023-07-21 20:43:47 +02:00
parent b11eb60ac3
commit 24aa1bc3d1

6
app.sh
View file

@ -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"