Even though users are supposed to have any local-includes with the correct owner and permissions, we set them manually on /home/user as it's likely that anybody will forget it (Closes: #506553).

This commit is contained in:
Daniel Baumann 2008-11-22 15:47:09 +01:00
parent c4c64bc0f8
commit 5e7f545474
1 changed files with 12 additions and 2 deletions

View File

@ -95,9 +95,19 @@ then
${LH_ROOT_COMMAND} chown -R --quiet $(whoami):$(whoami) chroot
fi
if [ "${LH_INITRAMFS}" = "casper" ] && [ -d chroot/home/${LH_USERNAME} ]
case "${LH_INITRAMFS}" in
casper)
ID="999"
;;
*)
ID="1000"
;;
esac
if [ -d chroot/home/${LH_USERNAME} ]
then
chown -R --quiet 999:999 chroot/home/${LH_USERNAME}
chown -R --quiet ${ID}:${ID} chroot/home/${LH_USERNAME}
fi
# This is a temporary hack to get rid of fstab;