1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#! /bin/sh
set -e
case "${DPKG_MAINTSCRIPT_PACKAGE}" in
syslog-ng-mod-json)
modname="tfjson"
;;
syslog-ng-mod-sql|syslog-ng-mod-mongodb)
modname="${DPKG_MAINTSCRIPT_PACKAGE#syslog-ng-mod-}"
;;
*)
echo "rm_conffile voodoo unsupported for package ${DPKG_MAINTSCRIPT_PACKAGE}!" >&2
exit 1
;;
esac
if [ -x "/usr/bin/dpkg-maintscript-helper" ]; then
if dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile \
/etc/syslog-ng/conf.d/00load-${modname}.conf 3.4.0~ -- "$@"
fi
fi
exit 0
|