diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:21 +0000 |
commit | 24b1e14e26b1bc6cf98663c2964a3637c56944eb (patch) | |
tree | 5dfbc4d09ae789919613f5e20d0dcac87e6ece90 /debian/rsyslog-mysql.postinst | |
parent | Adding upstream version 8.2402.0. (diff) | |
download | rsyslog-24b1e14e26b1bc6cf98663c2964a3637c56944eb.tar.xz rsyslog-24b1e14e26b1bc6cf98663c2964a3637c56944eb.zip |
Adding debian version 8.2402.0-1.debian/8.2402.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rsyslog-mysql.postinst')
-rw-r--r-- | debian/rsyslog-mysql.postinst | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/debian/rsyslog-mysql.postinst b/debian/rsyslog-mysql.postinst new file mode 100644 index 0000000..49a8fdf --- /dev/null +++ b/debian/rsyslog-mysql.postinst @@ -0,0 +1,43 @@ +#!/bin/sh + +set -e + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +. /usr/share/debconf/confmodule +. /usr/share/dbconfig-common/dpkg/postinst.mysql + + +dbc_generate_include_args="-o template_infile=/usr/share/rsyslog-mysql/rsyslog-mysql.conf.template" +dbc_generate_include=template:/etc/rsyslog.d/mysql.conf +dbc_go rsyslog-mysql $@ + + +case "$1" in + configure) + ucfr rsyslog-mysql /etc/rsyslog.d/mysql.conf + + invoke-rc.d rsyslog restart + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + +#DEBHELPER# |