wok-stable diff partimage/receipt @ rev 1137
Fix post_install for subdir install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 24 12:27:06 2008 +0000 (2008-07-24) |
parents | a075ff895254 |
children | 61bc01878920 |
line diff
1.1 --- a/partimage/receipt Tue May 13 09:50:02 2008 +0200 1.2 +++ b/partimage/receipt Thu Jul 24 12:27:06 2008 +0000 1.3 @@ -38,14 +38,14 @@ 1.4 { 1.5 echo "Processing post install commands..." 1.6 echo "Adding user/group partimag..." 1.7 - adduser -S -H -D partimag 1.8 + chroot $1/ adduser -S -H -D partimag 1.9 1.10 echo "Setting permissions for config files" 1.11 - chmod 0600 /etc/partimaged/* 1.12 - chown partimag.partimag /etc/partimaged/* 1.13 + chmod 0600 $1/etc/partimaged/* 1.14 + chown partimag.partimag $1/etc/partimaged/* 1.15 1.16 echo " Creating image files directory" 1.17 - install -g partimag -o partimag -m 0755 -d /var/lib/partimaged 1.18 + install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged 1.19 1.20 echo "" 1.21 echo -e "\nTo starts $PACKAGE server you can run :\n"