update ssh key check in Cerbo
This commit is contained in:
parent
6e82d3536d
commit
28039e9149
|
@ -22,15 +22,13 @@ ip_addresses=("10.2.1.193" "10.2.2.61" "10.2.3.225" "10.2.2.248" "10.2.2.194" "1
|
|||
# scp -r "${cerbo_release_file_path}/aggregator" "root@"$ip_address":/data"
|
||||
|
||||
for ip_address in "${ip_addresses[@]}"; do
|
||||
## build connection first
|
||||
ssh "$username"@"$ip_address" "echo '$root_password'"
|
||||
## stop battery service if change any file related to battery service otherwise no need to do this
|
||||
# ssh "$username"@"$ip_address" "svc -d /service/dbus-fzsonick-48tl.*"
|
||||
# ssh -o StrictHostKeyChecking=no "$username"@"$ip_address" "svc -d /service/dbus-fzsonick-48tl.*"
|
||||
scp "${cerbo_release_file_path}/flows.json" "root@"$ip_address":/data/home/nodered/.node-red/"
|
||||
ssh "$username"@"$ip_address" "dbus -y com.victronenergy.platform /Services/NodeRed/Mode SetValue %0"
|
||||
ssh "$username"@"$ip_address" "dbus -y com.victronenergy.platform /Services/NodeRed/Mode SetValue %1"
|
||||
ssh -o StrictHostKeyChecking=no "$username"@"$ip_address" "dbus -y com.victronenergy.platform /Services/NodeRed/Mode SetValue %0"
|
||||
ssh -o StrictHostKeyChecking=no "$username"@"$ip_address" "dbus -y com.victronenergy.platform /Services/NodeRed/Mode SetValue %1"
|
||||
## start battery service
|
||||
# ssh "$username"@"$ip_address" "svc -u /service/dbus-fzsonick-48tl.*"
|
||||
# ssh -o StrictHostKeyChecking=no "$username"@"$ip_address" "svc -u /service/dbus-fzsonick-48tl.*"
|
||||
|
||||
echo "Deployed and ran commands on $ip_address"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue