wok rev 1206

postfix: fix perms
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 08 22:09:48 2008 +0000 (2008-08-08)
parents 25993750a8d7
children e4e616d63708
files postfix/receipt
line diff
     1.1 --- a/postfix/receipt	Fri Aug 08 19:36:05 2008 +0000
     1.2 +++ b/postfix/receipt	Fri Aug 08 22:09:48 2008 +0000
     1.3 @@ -51,9 +51,7 @@
     1.4  	mv $fs/etc/postfix/TLS_LICENSE $fs/usr/share/licenses/POSTFIX_TLS_LICENSE
     1.5  	mv $fs/etc/postfix/LICENSE $fs/usr/share/licenses/POSTFIX_LICENSE
     1.6  	cp -a stuff/etc/init.d $fs/etc
     1.7 -	chmod 2755 $fs/usr/sbin/postdrop $fs/usr/sbin/postqueue
     1.8 -	rm -f $fs/etc/postfix/post-install $fs/etc/postfix/postfix-files \
     1.9 -		$fs/etc/postfix/postfix-script
    1.10 +	rm -f $fs/etc/postfix/post*
    1.11  }
    1.12  
    1.13  # Pre and post install commands for Tazpkg.
    1.14 @@ -81,10 +79,13 @@
    1.15  		chroot $1/ addgroup postdrop
    1.16  		status
    1.17  	fi
    1.18 -	chown postfix /var/spool/postfix/* /var/lib/postfix
    1.19 -	chgrp postdrop /var/spool/postfix/maildrop /var/spool/postfix/public \
    1.20 -			/usr/sbin/postdrop /usr/sbin/postqueue
    1.21 -	postalias /etc/postfix/aliases
    1.22 +	chown postfix $1/var/spool/postfix/* $1/var/lib/postfix
    1.23 +	chgrp postdrop $1/var/spool/postfix/maildrop $1/var/spool/postfix/public \
    1.24 +			$1/usr/sbin/postdrop $1/usr/sbin/postqueue
    1.25 +	chmod 2755 $1/usr/sbin/postdrop $1/usr/sbin/postqueue
    1.26 +	chmod 2710 $1/var/spool/postfix/public
    1.27 +	chmod 1730 $1/var/spool/postfix/maildrop
    1.28 +	postalias $1/etc/postfix/aliases
    1.29  	cat <<EOF
    1.30  ----
    1.31  Warning: you still need to edit myorigin/mydestination/mynetworks