[Fai-commit] r4222 - trunk/bin
Thomas Lange
lange at alioth.debian.org
Tue Jan 23 15:05:40 CET 2007
Author: lange
Date: 2007-01-23 15:05:40 +0100 (Tue, 23 Jan 2007)
New Revision: 4222
Modified:
trunk/bin/fai-setup
Log:
do not chown the whole home directory of $LOGUSER, but instead only
change the relevant files
Modified: trunk/bin/fai-setup
===================================================================
--- trunk/bin/fai-setup 2007-01-22 15:31:13 UTC (rev 4221)
+++ trunk/bin/fai-setup 2007-01-23 14:05:40 UTC (rev 4222)
@@ -145,7 +145,12 @@
if [ -n "$LOGUSER" ]; then
# chown only if cd was successful
- cd $loguserhome && chown -R $LOGUSER:$logusergid . || true
+ cd $loguserhome
+ if [ $? -eq 0 ]; then
+ chown $LOGUSER:$logusergid . .rhosts|| true
+ chown -R $LOGUSER:$logusergid .ssh || true
+
+ fi
chown -R $LOGUSER:$logusergid /srv/tftp/fai || true
fi
More information about the Fai-commit
mailing list