wok rev 17041

slitaz-configs-base: /home may not exist (cookiso case)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 19 13:06:45 2014 +0200 (2014-08-19)
parents 07cf937874e1
children 42ef8f008d56
files slitaz-configs-base/receipt
line diff
     1.1 --- a/slitaz-configs-base/receipt	Tue Aug 19 09:21:54 2014 +0000
     1.2 +++ b/slitaz-configs-base/receipt	Tue Aug 19 13:06:45 2014 +0200
     1.3 @@ -56,8 +56,8 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	for i in /root $(cd $1/; ls -d home/*); do
     1.8 -		chroot $1/ cp -f /etc/skel/.xinitrc $i
     1.9 +	for i in $(ls -d $1/root $1/home/* 2> /dev/null); do
    1.10 +		[ -d $i ] && cp -f $1/etc/skel/.xinitrc $i
    1.11  	done
    1.12  	echo "Updating ~/.xinitrc ... Done."
    1.13  }