#!/bin/sh set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) user_conf=/etc/rsyslog.d/50-default.conf default_conf=/usr/share/rsyslog/50-default.conf ucf --three-way --debconf-ok $default_conf $user_conf ucfr rsyslog $user_conf adduser --system --group --no-create-home --quiet syslog || true ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # Automatically added by dh_installinit if [ -x "/etc/init.d/rsyslog" ]; then if [ -n "$2" ]; then _dh_action=restart else _dh_action=start fi invoke-rc.d rsyslog $_dh_action || exit $? fi # End automatically added section # Automatically added by dh_installinit update-rc.d -f rsyslog remove >/dev/null || exit $? # End automatically added section exit 0