projects
/
contrib
/
pines
/
genasys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcb7c05
)
ssh-copy-id was throwing errors from mktemp. We add this workaround so things can...
author
Andy Witter
<awitter@georgialibraries.org>
Thu, 14 Jan 2016 20:37:18 +0000
(15:37 -0500)
committer
Andy Witter
<awitter@georgialibraries.org>
Thu, 14 Jan 2016 20:37:18 +0000
(15:37 -0500)
templates/setup_sshkeys.sh
patch
|
blob
|
history
diff --git
a/templates/setup_sshkeys.sh
b/templates/setup_sshkeys.sh
index
0200953
..
f95bc16
100755
(executable)
--- 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