Rev 3 | 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`case "$1" inremove)# disable local_scan_path directive to exim workingif [ -e "$LOCALSCANCONF" ] && [ ! -e "${LOCALSCANCONF}.rul" ]; thenecho "${DISABLELOCALSCANTEXT}" > ${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;;purge)# 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 || truefifiif [ -e /var/spool/sa-exim ] && ! rmdir /var/spool/sa-exim 2>/dev/null ; thendb_version 2.0db_input medium sa-exim/purge_spool || truedb_go || truedb_get sa-exim/purge_spoolpurge_spool="$RET"if [ "x${purge_spool}" = "xtrue" ] ; thenrm -rf /var/spool/sa-eximfifi;;esac#DEBHELPER#