From: Andy Witter Date: Thu, 14 Jan 2016 20:37:18 +0000 (-0500) Subject: ssh-copy-id was throwing errors from mktemp. We add this workaround so things can... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9a43c4a7555bf397b6818d9e71c9b2209d40a1d6;p=contrib%2Fpines%2Fgenasys.git ssh-copy-id was throwing errors from mktemp. We add this workaround so things can go smootly --- diff --git a/templates/setup_sshkeys.sh b/templates/setup_sshkeys.sh index 0200953..f95bc16 100755 --- a/templates/setup_sshkeys.sh +++ b/templates/setup_sshkeys.sh @@ -35,6 +35,16 @@ if cat /etc/passwd |grep -q opensrf echo fi + if [ ! -d "$HOME/.ssh" ] ### Workaround for ssh-copy-id mktemp errors. + then + mkdir ~/.ssh + if [ ! -z $SUDO_USER ] + then + chown $SUDO_USER.$SUDO_USER ~/.ssh + fi + + fi + for NODE in $(cat opensrf_nodes.txt) do echo