Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 3 | Rev 20 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 15
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
set -e
2
set -e
3
3
-
 
4
if [ -f /usr/share/debconf/confmodule ]; then
4
. /usr/share/debconf/confmodule
5
  . /usr/share/debconf/confmodule
-
 
6
fi
5
7
6
LOCALSCANCONF=/etc/exim4/conf.d/main/15_sa-exim_plugin_path
8
LOCALSCANCONF=/etc/exim4/conf.d/main/15_sa-exim_plugin_path
7
DISABLELOCALSCANTEXT='# sa-exim plugin is disabled, because it was uninstalled'
9
DISABLELOCALSCANTEXT='# sa-exim plugin is disabled, because it was uninstalled'
8
DISABLELOCALSCANMD5=`echo "${DISABLELOCALSCANTEXT}" | md5sum | cut -d\  -f1`
10
DISABLELOCALSCANMD5=`echo "${DISABLELOCALSCANTEXT}" | md5sum | cut -d\  -f1`
9
11
Line 33... Line 35...
33
			invoke-rc.d exim4 reload || true
35
			invoke-rc.d exim4 reload || true
34
		else
36
		else
35
			/etc/init.d/exim4 reload || true
37
			/etc/init.d/exim4 reload || true
36
		fi
38
		fi
37
	fi
39
	fi
-
 
40
        # In the rather uncommon event that debconf has been removed before
-
 
41
        # us, we have no choice but leaving the spool directory alone.
38
	if [ -e /var/spool/sa-exim ] && ! rmdir /var/spool/sa-exim 2>/dev/null ; then
42
	if [ -e /var/spool/sa-exim ] && ! rmdir /var/spool/sa-exim 2>/dev/null
-
 
43
            && [ -f /usr/share/debconf/confmodule ]; then
39
		db_version 2.0
44
		db_version 2.0
40
		db_input medium sa-exim/purge_spool || true
45
		db_input medium sa-exim/purge_spool || true
41
		db_go || true
46
		db_go || true
42
		db_get sa-exim/purge_spool
47
		db_get sa-exim/purge_spool
43
		purge_spool="$RET"
48
		purge_spool="$RET"