[Fai-commit] r4913 - trunk/bin

lange at alioth.debian.org lange at alioth.debian.org
Sun May 25 20:40:19 UTC 2008


Author: lange
Date: 2008-05-25 20:40:16 +0000 (Sun, 25 May 2008)
New Revision: 4913

Modified:
   trunk/bin/fai-setup
Log:
check if file exists


Modified: trunk/bin/fai-setup
===================================================================
--- trunk/bin/fai-setup	2008-05-25 20:39:23 UTC (rev 4912)
+++ trunk/bin/fai-setup	2008-05-25 20:40:16 UTC (rev 4913)
@@ -157,7 +157,7 @@
     # chown only if cd was successful
     cd $loguserhome
     if [ $? -eq 0 ]; then
-	chown $LOGUSER:$logusergid . .rhosts || true
+	[ -e .rhosts] && chown $LOGUSER:$logusergid . .rhosts || true
 	[ -d .ssh ] && chown -R $LOGUSER:$logusergid .ssh || true
     fi
     mkdir -p $TFTPROOT




More information about the Fai-commit mailing list