wok-next rev 2391
postfix: fix chroot in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 10 09:02:15 2009 +0000 (2009-03-10) |
parents | aecd84e2599a |
children | 81ec665f8df4 |
files | postfix/receipt |
line diff
1.1 --- a/postfix/receipt Tue Mar 10 08:59:55 2009 +0000 1.2 +++ b/postfix/receipt Tue Mar 10 09:02:15 2009 +0000 1.3 @@ -75,13 +75,13 @@ 1.4 chroot $1/ addgroup postdrop 1.5 status 1.6 fi 1.7 - chown postfix $1/var/spool/postfix/* $1/var/lib/postfix 1.8 - chgrp postdrop $1/var/spool/postfix/maildrop $1/var/spool/postfix/public \ 1.9 - $1/usr/sbin/postdrop $1/usr/sbin/postqueue 1.10 + chroot $1/ sh -c 'chown postfix /var/spool/postfix/* /var/lib/postfix' 1.11 + chroot $1/ chgrp postdrop /var/spool/postfix/maildrop \ 1.12 + /var/spool/postfix/public /usr/sbin/postdrop /usr/sbin/postqueue 1.13 chmod 2755 $1/usr/sbin/postdrop $1/usr/sbin/postqueue 1.14 chmod 2710 $1/var/spool/postfix/public 1.15 chmod 1730 $1/var/spool/postfix/maildrop 1.16 - postalias $1/etc/postfix/aliases 1.17 + chroot $1/ postalias /etc/postfix/aliases 1.18 cat <<EOF 1.19 ---- 1.20 Warning: you still need to edit myorigin/mydestination/mynetworks