3
if [ -n "$EX4DEBUG" ]; then
4
echo "now debugging $0 $@"
8
# Remove a no-longer used conffile
9
# Solution and code taken from http://wiki.debian.org/DpkgConffileHandling
10
# and "beautified" (hopefully not broken)
15
if [ -e "$CONFFILE" ]; then
16
md5sum="$(md5sum "$CONFFILE" | sed -e "s/ .*//")"
17
old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e "\' $CONFFILE'{s/ obsolete$//;s/.* //;p;}")"
18
if [ "$md5sum" != "$old_md5sum" ]; then
19
echo "Obsolete conffile $CONFFILE has been modified by you."
20
echo "Saving as $CONFFILE.dpkg-bak ..."
21
mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
23
echo "Removing obsolete conffile $CONFFILE ..."
31
if dpkg --compare-versions "$2" lt "4.68-1"; then
32
rm_conffile exim4-config "/etc/exim4/conf.d/acl/20_exim4-config_whitelist_local_deny"
33
rm_conffile exim4-config "/etc/exim4/conf.d/router/250_exim4-config_lowuid"