Subversion Repositories sa-exim

Compare Revisions

Ignore whitespace Rev 66 → Rev 67

/trunk/debian/postinst
20,21 → 20,18
configure)
if [ ! -e /var/spool/sa-exim ] ; then
# Debian-exim should exist as we depend on exim4-base
install -d -m771 -oDebian-exim -gDebian-exim \
install -d -m770 -oDebian-exim -gDebian-exim \
/var/spool/sa-exim
elif [ -d /var/spool/sa-exim ]; then
# Fix permissions
chmod 771 /var/spool/sa-exim
chown Debian-exim:Debian-exim /var/spool/sa-exim
fi
# Support for greylisting tuplets (written as nobody by spamd)
# Support for greylisting tuplets (written by default as Debian-exim by spamd)
if [ ! -e /var/spool/sa-exim/tuplets ] ; then
install -d -m750 -onobody -gDebian-exim \
install -d -m770 -oDebian-exim -gDebian-exim \
/var/spool/sa-exim/tuplets
elif [ -d /var/spool/sa-exim/tuplets ]; then
# Fix permissions
chmod 771 /var/spool/sa-exim/tuplets
chown nobody:Debian-exim /var/spool/sa-exim/tuplets
elif [ `stat -c "%U:%G" /var/spool/sa-exim/tuplets` = "nobody:Debian-exim" ] &&
dpkg --compare-versions "$2" lt-nl "4.2.1-14"; then
# If ownership is as before 4.2.1-14, give the Debian-exim
# group write permissions. Bug 563492.
chmod g+w /var/spool/sa-exim/tuplets
fi
# clean up temporary file generated by postrm uninstall
if [ -e "${LOCALSCANCONF}.rul" ] && \