From 549c9fbc737af0de8e93dab39644738af940c3e9 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 11 Jan 2016 15:17:14 +0100 Subject: bin/switch_wfs_os: Adding @ in ssh command. --- 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 975e49e..2b23fbf 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 wfs${hostnames_arch[1]} "/usr/bin/sudo bin/$(basename $0)" - ssh 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 wfs${hostnames_ubuntu[1]} "/usr/bin/sudo bin/$(basename $0)" - ssh wfs${hostnames_ubuntu[2]} "/usr/bin/sudo 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