Rev 1 | Rev 4 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/shset -e. /usr/share/debconf/confmoduleLOCALSCANCONF=/etc/exim4/conf.d/main/15_sa-exim_plugin_pathDISABLELOCALSCANTEXT='# sa-exim plugin is disabled, because it was uninstalled'DISABLELOCALSCANMD5=`echo "${DISABLELOCALSCANTEXT}" | md5sum | cut -d\ -f1`OLDCRONJOB=/etc/cron.hourly/greylistcleanOLDCRONJOBREN=/etc/cron.hourly/.greylistclean.insecure.deletemeif test -f $OLDCRONJOB; thenecho "disabling old insecure $OLDCRONJOB"echo "(renamed to $OLDCRONJOBREN)"echo "See new cronjob in /etc/cron.d/greylistclean"/bin/mv $OLDCRONJOB $OLDCRONJOBRENficase "$1" inconfigure)if [ ! -e /var/spool/sa-exim ] ; then# Debian-exim should exist as we depend on exim4-baseinstall -d -m770 -oDebian-exim -gDebian-exim \/var/spool/sa-eximfi# Support for greylisting tuplets (written as nobody by spamd)if [ ! -e /var/spool/sa-exim/tuplets ] ; theninstall -d -m750 -onobody -gDebian-exim \/var/spool/sa-exim/tupletsfi# clean up temporary file generated by postrm uninstallif [ -e "${LOCALSCANCONF}.rul" ] && \[ "`md5sum ${LOCALSCANCONF}.rul | cut -d\ -f1`" = "${DISABLELOCALSCANMD5}" ]; thenrm ${LOCALSCANCONF}.rulfiif [ -x /etc/init.d/exim4 ]; thenif [ -x /usr/sbin/invoke-rc.d ]; theninvoke-rc.d exim4 reload || trueelse/etc/init.d/exim4 reload || truefifi;;esac#DEBHELPER#