From f8920bb2bf76a06c1ae4264e330af38150c4fb13 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Wed, 13 Jan 2016 16:32:52 -0500 Subject: [PATCH] fix [ BUG - #69 utility01 setup script - SSH setup script does not prompt for password when trying to add keys to remote servers. ] Something changed in Gnu su so we use this as a workaround. --- GenaSYS.sh | 4 ++-- templates/setup_sshkeys.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/GenaSYS.sh b/GenaSYS.sh index a404432..98f5e76 100755 --- a/GenaSYS.sh +++ b/GenaSYS.sh @@ -25,8 +25,8 @@ PURPOSE_="Generate config files needed for Evergreen-ILS Cluster" SYNOPSIS_="$NAME_" REQUIRES_="standard GNU commands, apt, dpkg" - VERSION_="1.60" - DATE_="2010-11-23; last update: 2016-01-12" + VERSION_="1.61" + DATE_="2010-11-23; last update: 2016-01-13" AUTHOR_="Andy Witter " URL_="http://evergreen-ils.org" CATEGORY_="devel" diff --git a/templates/setup_sshkeys.sh b/templates/setup_sshkeys.sh index 56aeaf5..bdb2316 100755 --- a/templates/setup_sshkeys.sh +++ b/templates/setup_sshkeys.sh @@ -40,7 +40,9 @@ if cat /etc/passwd |grep -q opensrf echo echo Setting up SSH keys for OpenSRF node: $NODE echo - su - opensrf -c "ssh-copy-id -i $PUB_KEY opensrf@$NODE" + #su - opensrf -c "ssh-copy-id -i $PUB_KEY opensrf@$NODE" + ssh-copy-id -i $PUB_KEY opensrf@$NODE -o StrictHostKeyChecking=no + su - opensrf -c "ssh gsdev-brick01-head -o StrictHostKeyChecking=no -C 'echo $NODE OK'" done else echo "user opensrf does not exist create the user" -- 2.11.0