From 36f8e3768ed17ab980631d58b6fa63789615deb0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 11 Jan 2016 15:04:29 +0100 Subject: bin/switch_wfs_os: Removing pseudo-tty allocation for ssh. Unifying script path to wfs' bin folder. --- bin/switch_wfs_os | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') 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!" -- cgit v1.2.3-70-g09d2