[Fai-commit] r3690 - trunk/bin

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Fri Jul 28 11:43:37 UTC 2006


Author: lange
Date: 2006-07-28 11:43:36 +0000 (Fri, 28 Jul 2006)
New Revision: 3690

Modified:
   trunk/bin/fai-setup
Log:
do not overwrite $loguserhome/.rhosts if already existing


Modified: trunk/bin/fai-setup
===================================================================
--- trunk/bin/fai-setup	2006-07-27 12:45:18 UTC (rev 3689)
+++ trunk/bin/fai-setup	2006-07-28 11:43:36 UTC (rev 3690)
@@ -117,7 +117,7 @@
 	chmod 0700 $sshdir/authorized_keys
 	echo "$sshdir/authorized_keys created."
     fi
-    if [ $FAI_LOGPROTO= "rsh" ]; then
+    if [ $FAI_LOGPROTO= "rsh" -a ! -f $loguserhome/.rhosts]; then
 	# use .rhosts authentication
 	echo "+ at faiclients root" > $loguserhome/.rhosts
 	chmod go-rwx $loguserhome/.rhosts




More information about the Fai-commit mailing list