diff options
author | David Runge <dave@sleepmap.de> | 2016-01-11 15:17:14 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-01-11 15:17:14 +0100 |
commit | 549c9fbc737af0de8e93dab39644738af940c3e9 (patch) | |
tree | 505eb19a0c4dacc8d85c5eb8256f379d37cdb27d /bin | |
parent | 36f8e3768ed17ab980631d58b6fa63789615deb0 (diff) | |
download | dotfiles-549c9fbc737af0de8e93dab39644738af940c3e9.tar.gz dotfiles-549c9fbc737af0de8e93dab39644738af940c3e9.tar.bz2 dotfiles-549c9fbc737af0de8e93dab39644738af940c3e9.tar.xz dotfiles-549c9fbc737af0de8e93dab39644738af940c3e9.zip |
bin/switch_wfs_os: Adding @ in ssh command.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/switch_wfs_os | 8 |
1 files changed, 4 insertions, 4 deletions
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!" |