This commit is contained in:
Michael Grote 2023-07-21 20:27:22 +02:00
parent 80f1cd121e
commit 363fdd90e9

4
x
View file

@ -72,8 +72,8 @@ while read -r FQDN SSH_KEY_PATH; do
ssh -n -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"
git commit -m "update config_${FQDN}"
git add "config_${FQDN}.rsc" --quiet
git commit -m "update config_${FQDN}" --quiet
done <<< "$DEVICES"
git push