wok rev 17035

slitaz-configs-base: use chroot in post_install()
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Aug 18 08:45:31 2014 +0000 (2014-08-18)
parents da959955050c
children 2dd00d63b1d6
files slitaz-configs-base/receipt
line diff
     1.1 --- a/slitaz-configs-base/receipt	Sun Aug 17 18:44:51 2014 +0200
     1.2 +++ b/slitaz-configs-base/receipt	Mon Aug 18 08:45:31 2014 +0000
     1.3 @@ -56,14 +56,8 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -local root
     1.8 -root=$1
     1.9 -if [ -f /etc/skel/.xinitrc ]; then
    1.10 - for i in `ls -d /home/*`
    1.11 -  do
    1.12 -   cp -f /etc/skel/.xinitrc $i/.xinitrc
    1.13 -   cp -f /etc/skel/.xinitrc /root/.xinitrc
    1.14 -  done
    1.15 -fi
    1.16 -echo "Updating ~/.xinitrc ... Done."
    1.17 +	for i in /root $(cd $1/; ls -d home/*); do
    1.18 +		chroot $1/ cp -f /etc/skel/.xinitrc $i
    1.19 +	done
    1.20 +	echo "Updating ~/.xinitrc ... Done."
    1.21  }