This commit is contained in:
Michael Grote 2023-07-21 18:58:43 +02:00
parent 8a66092c7c
commit 7a1aa50ff5

4
x
View file

@ -2,7 +2,7 @@
# setze Variable # setze Variable
# Format <FQDN>,<SSH_KEY_PATH to ssh-private-key(passwordless)> # Format <FQDN>,<SSH_KEY_PATH to ssh-private-key(passwordless)>
devices="rb5009.grote.lan,/home/mg/oxidized-selfmade/neu DEVICES="rb5009.grote.lan,/home/mg/oxidized-selfmade/neu
hex.grote.lan,/ssh/keys/hex" hex.grote.lan,/ssh/keys/hex"
@ -44,7 +44,7 @@ while read -r FQDN SSH_KEY_PATH; do
ssh -n -i "$SSH_KEY_PATH" "$FQDN" "/export show-sensitive" > "config_${FQDN}.rsc" ssh -n -i "$SSH_KEY_PATH" "$FQDN" "/export show-sensitive" > "config_${FQDN}.rsc"
git add "config_${FQDN}.rsc" git add "config_${FQDN}.rsc"
git commit -m "update config_${FQDN}" git commit -m "update config_${FQDN}"
done <<< "$devices" done <<< "$DEVICES"
git push git push