diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2024-02-08 11:17:23 +0100 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2024-02-08 11:17:23 +0100 |
| commit | 8c9b6ddbba393d2fe404c4eaaaed8281f1935a00 (patch) | |
| tree | f88dbc863fe19e7790568f8d3271f71ec4b1a10d | |
| parent | 69cd9b300b974cebce052f41e4f0269acecf3a42 (diff) | |
Minor changes
| -rw-r--r-- | .clusterman_onoff.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.clusterman_onoff.sh b/.clusterman_onoff.sh index 75f40dc..21ac096 100644 --- a/.clusterman_onoff.sh +++ b/.clusterman_onoff.sh @@ -20,6 +20,6 @@ for value in "${nodes[@]}"; do ina260=$(echo "$value"|cut -d "/" -f 2) ip=$(clusterman node list -g $node) [ $? -ne 0 ] && { echo "$ip"; exit 1; } - [ "$1" == "off" ] && ssh testbed@${ip} touch ina260-zmq-publisher/publisher_${ina260}_break - [ "$1" == "on" ] && ssh testbed@${ip} rm -f ina260-zmq-publisher/publisher_${ina260}_break + [ "$1" == "off" ] && ssh -i /home/admin/iot-testbed/ssh/rpbi_testbed testbed@${ip} touch ina260-zmq-publisher/publisher_${ina260}_break + [ "$1" == "on" ] && ssh -i /home/admin/iot-testbed/ssh/rpbi_testbed testbed@${ip} rm -f ina260-zmq-publisher/publisher_${ina260}_break done |
