devices
This commit is contained in:
parent
8a66092c7c
commit
7a1aa50ff5
1 changed files with 2 additions and 2 deletions
4
x
4
x
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue