[Fai-commit] r4225 - trunk/bin

Thomas Lange lange at alioth.debian.org
Tue Jan 23 23:36:08 CET 2007


Author: lange
Date: 2007-01-23 23:36:07 +0100 (Tue, 23 Jan 2007)
New Revision: 4225

Modified:
   trunk/bin/fai-setup
Log:
add test if directory .ssh exists


Modified: trunk/bin/fai-setup
===================================================================
--- trunk/bin/fai-setup	2007-01-23 21:34:26 UTC (rev 4224)
+++ trunk/bin/fai-setup	2007-01-23 22:36:07 UTC (rev 4225)
@@ -147,9 +147,8 @@
     # chown only if cd was successful
     cd $loguserhome
     if [ $? -eq 0 ]; then
-	chown    $LOGUSER:$logusergid . .rhosts|| true
-	chown -R $LOGUSER:$logusergid .ssh || true
-
+	chown $LOGUSER:$logusergid . .rhosts || true
+	[ -d .ssh ] && chown -R $LOGUSER:$logusergid .ssh || true
     fi
     chown -R $LOGUSER:$logusergid /srv/tftp/fai || true
 fi




More information about the Fai-commit mailing list