From 8c9b6ddbba393d2fe404c4eaaaed8281f1935a00 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 8 Feb 2024 11:17:23 +0100 Subject: [PATCH] Minor changes --- .clusterman_onoff.sh | 4 ++-- 1 file 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