Rev 53 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 53 | Rev 67 | ||
|---|---|---|---|
| Line 18... | Line 18... | ||
| 18 | 18 | ||
| 19 | case "$1" in  | 
            19 | case "$1" in  | 
          
| 20 | configure)  | 
            20 | configure)  | 
          
| 21 | if [ ! -e /var/spool/sa-exim ] ; then  | 
            21 | if [ ! -e /var/spool/sa-exim ] ; then  | 
          
| 22 | # Debian-exim should exist as we depend on exim4-base  | 
            22 | # Debian-exim should exist as we depend on exim4-base  | 
          
| 23 | install -d -m771 -oDebian-exim -gDebian-exim \  | 
            23 | install -d -m770 -oDebian-exim -gDebian-exim \  | 
          
| 24 | /var/spool/sa-exim  | 
            24 | /var/spool/sa-exim  | 
          
| 25 | elif [ -d /var/spool/sa-exim ]; then  | 
            - | |
| 26 | # Fix permissions  | 
            - | |
| 27 | chmod 771 /var/spool/sa-exim  | 
            - | |
| 28 | chown Debian-exim:Debian-exim /var/spool/sa-exim  | 
            - | |
| 29 | fi  | 
            25 | fi  | 
          
| 30 | # Support for greylisting tuplets (written as nobody by spamd)  | 
            26 | # Support for greylisting tuplets (written by default as Debian-exim by spamd)  | 
          
| 31 | if [ ! -e /var/spool/sa-exim/tuplets ] ; then  | 
            27 | if [ ! -e /var/spool/sa-exim/tuplets ] ; then  | 
          
| 32 | install -d -m750 -onobody -gDebian-exim \  | 
            28 | install -d -m770 -oDebian-exim -gDebian-exim \  | 
          
| 33 | /var/spool/sa-exim/tuplets  | 
            29 | /var/spool/sa-exim/tuplets  | 
          
| 34 | elif [ -d /var/spool/sa-exim/tuplets ]; then  | 
            30 | elif [ `stat -c "%U:%G" /var/spool/sa-exim/tuplets` = "nobody:Debian-exim" ] &&  | 
          
| 35 | # Fix permissions  | 
            31 | dpkg --compare-versions "$2" lt-nl "4.2.1-14"; then  | 
          
| - | 32 | # If ownership is as before 4.2.1-14, give the Debian-exim  | 
          |
| 36 | chmod 771 /var/spool/sa-exim/tuplets  | 
            33 | # group write permissions. Bug 563492.  | 
          
| 37 | chown nobody:Debian-exim /var/spool/sa-exim/tuplets  | 
            34 | chmod g+w /var/spool/sa-exim/tuplets  | 
          
| 38 | fi  | 
            35 | fi  | 
          
| 39 | # clean up temporary file generated by postrm uninstall  | 
            36 | # clean up temporary file generated by postrm uninstall  | 
          
| 40 | 	if [ -e "${LOCALSCANCONF}.rul" ] && \
 | 
            37 | 	if [ -e "${LOCALSCANCONF}.rul" ] && \
 | 
          
| 41 | 	   [ "`md5sum ${LOCALSCANCONF}.rul | cut -d\  -f1`" = "${DISABLELOCALSCANMD5}" ]; then
 | 
            38 | 	   [ "`md5sum ${LOCALSCANCONF}.rul | cut -d\  -f1`" = "${DISABLELOCALSCANMD5}" ]; then
 | 
          
| 42 | 	   rm ${LOCALSCANCONF}.rul
 | 
            39 | 	   rm ${LOCALSCANCONF}.rul
 |