-o StrictHostKeyChecking=no
This commit is contained in:
parent
b11eb60ac3
commit
24aa1bc3d1
1 changed files with 1 additions and 5 deletions
6
app.sh
6
app.sh
|
@ -17,9 +17,6 @@ FAILFILE=$(mktemp)
|
||||||
|
|
||||||
|
|
||||||
while true ; do
|
while true ; do
|
||||||
# Healthcheck
|
|
||||||
echo "" > "$FAILFILE"
|
|
||||||
|
|
||||||
# Checks
|
# Checks
|
||||||
if [ -z "$GIT_REPO_PATH" ] ; then
|
if [ -z "$GIT_REPO_PATH" ] ; then
|
||||||
echo "GIT_REPO_PATH is not set."
|
echo "GIT_REPO_PATH is not set."
|
||||||
|
@ -29,7 +26,6 @@ while true ; do
|
||||||
echo "INTERVAL is not set."
|
echo "INTERVAL is not set."
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$GIT_REPO_BRANCH" ] ; then
|
if [ -z "$GIT_REPO_BRANCH" ] ; then
|
||||||
echo "GIT_REPO_BRANCH is not set."
|
echo "GIT_REPO_BRANCH is not set."
|
||||||
exit 3
|
exit 3
|
||||||
|
@ -82,7 +78,7 @@ while true ; do
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
echo "export $FQDN config"
|
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
|
# 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"
|
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"
|
git add "config_${FQDN}.rsc"
|
||||||
|
|
Loading…
Reference in a new issue