aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/switch_wfs_os8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/switch_wfs_os b/bin/switch_wfs_os
index c941a4c..975e49e 100755
--- a/bin/switch_wfs_os
+++ b/bin/switch_wfs_os
@@ -52,8 +52,8 @@ if [ "$os_set" == "${os_new}" ] && [ "$os_current" == "${os_new}" ]; then
sed -i 's/^DEFAULT .*/DEFAULT '${os_old}'/' $syslinux_location
echo "Calling script on nodes:"
if [[ "${hostnames_arch[0]}" == "$host" ]]; then
- ssh -t wfs${hostnames_arch[1]} "/usr/bin/sudo bin/$(basename $0)"
- ssh -t wfs${hostnames_arch[2]} "/usr/bin/sudo bin/$(basename $0)"
+ ssh wfs${hostnames_arch[1]} "/usr/bin/sudo bin/$(basename $0)"
+ ssh wfs${hostnames_arch[2]} "/usr/bin/sudo bin/$(basename $0)"
fi
else
echo "Error: Script is not supposed to be running on this host!"
@@ -67,8 +67,8 @@ elif [ "$os_set" == "${os_old}" ] && [ "$os_current" == "${os_old}" ]; then
sed -i 's/^DEFAULT .*/DEFAULT '${os_new}'/' $syslinux_location
echo "Calling script on nodes:"
if [[ "${hostnames_ubuntu[0]}" == "$host" ]]; then
- ssh -t wfs${hostnames_ubuntu[1]} "/usr/bin/sudo /usr/local/bin/$(basename $0)"
- ssh -t wfs${hostnames_ubuntu[2]} "/usr/bin/sudo /usr/local/bin/$(basename $0)"
+ ssh wfs${hostnames_ubuntu[1]} "/usr/bin/sudo bin/$(basename $0)"
+ ssh wfs${hostnames_ubuntu[2]} "/usr/bin/sudo bin/$(basename $0)"
fi
else
echo "Error: Script is not supposed to be running on this host!"