aboutsummaryrefslogtreecommitdiffstats
path: root/bin/switch_wfs_os
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-01-11 15:04:29 +0100
committerDavid Runge <dave@sleepmap.de>2016-01-11 15:04:29 +0100
commit36f8e3768ed17ab980631d58b6fa63789615deb0 (patch)
treedb2fc583ae190ce41ee76b9c56ce3f33166e8679 /bin/switch_wfs_os
parenta5521552416b29ce81e820c00ffd0f80e9397c81 (diff)
downloaddotfiles-36f8e3768ed17ab980631d58b6fa63789615deb0.tar.gz
dotfiles-36f8e3768ed17ab980631d58b6fa63789615deb0.tar.bz2
dotfiles-36f8e3768ed17ab980631d58b6fa63789615deb0.tar.xz
dotfiles-36f8e3768ed17ab980631d58b6fa63789615deb0.zip
bin/switch_wfs_os: Removing pseudo-tty allocation for ssh. Unifying script path to wfs' bin folder.
Diffstat (limited to 'bin/switch_wfs_os')
-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!"