livecd: rc.live - check for -d ~user

havner havner at pld-linux.org
Wed Jul 12 10:43:42 CEST 2006


Author: havner                       Date: Wed Jul 12 08:43:42 2006 GMT
Module: livecd                        Tag: HEAD
---- Log message:
- check for -d ~user

---- Files affected:
livecd:
   rc.live (1.32 -> 1.33) 

---- Diffs:

================================================================
Index: livecd/rc.live
diff -u livecd/rc.live:1.32 livecd/rc.live:1.33
--- livecd/rc.live:1.32	Wed Jul 12 10:23:12 2006
+++ livecd/rc.live	Wed Jul 12 10:43:37 2006
@@ -545,7 +545,7 @@
 	load_profiles "$DEV" default $NAME
 fi
 
-chown -R user:users /home/users/user
+[ -d /home/users/user ] && chown -R user:users /home/users/user
 
 #if getparam debug > /dev/null; then
 #	dmesg -n $CONSOLE_LOGLEVEL
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/livecd/rc.live?r1=1.32&r2=1.33&f=u



More information about the pld-cvs-commit mailing list