[PC-BSD Commits] r4891 - pcbsd/trunk/lifePreserver/scripts
svn at pcbsd.org
svn at pcbsd.org
Thu Nov 5 10:38:43 PST 2009
Author: kris
Date: 2009-11-05 10:38:43 -0800 (Thu, 05 Nov 2009)
New Revision: 4891
Modified:
pcbsd/trunk/lifePreserver/scripts/setup-ssh-keys.sh
Log:
Fix bug creating ssh keys in life-preserver when .ssh doesnt exist
Modified: pcbsd/trunk/lifePreserver/scripts/setup-ssh-keys.sh
===================================================================
--- pcbsd/trunk/lifePreserver/scripts/setup-ssh-keys.sh 2009-11-05 16:08:48 UTC (rev 4890)
+++ pcbsd/trunk/lifePreserver/scripts/setup-ssh-keys.sh 2009-11-05 18:38:43 UTC (rev 4891)
@@ -18,6 +18,7 @@
if [ ! -e ".ssh/id_rsa.pub" ]
then
+ mkdir .ssh >/dev/null 2>/dev/null
ssh-keygen -q -t rsa -N '' -f .ssh/id_rsa
sleep 1
fi
@@ -25,6 +26,7 @@
if [ ! -e ".ssh/id_rsa.pub" ]
then
echo "ERROR: Failed creating .ssh/id_rsa.pub"
+ sleep 5
exit 150
fi
More information about the Commits
mailing list