6
DEFAULTS=/etc/default/kamailio
7
HOMEDIR=/var/run/kamailio
11
# summary of how this script can be called:
12
# * <postinst> `configure' <most-recently-configured-version>
13
# * <old-postinst> `abort-upgrade' <new version>
14
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
16
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
17
# <failed-install-package> <version> `removing'
18
# <conflicting-package> <version>
19
# for details, see http://www.debian.org/doc/debian-policy/ or
20
# the debian-policy package
22
# quoting from the policy:
23
# Any necessary prompting should almost always be confined to the
24
# post-installation script, and should be protected with a conditional
25
# so that unnecessary prompting doesn't happen if a package's
26
# installation fails and the `postinst' is called with `abort-upgrade',
27
# `abort-remove' or `abort-deconfigure'.
31
adduser --quiet --system --group --disabled-password \
32
--shell /bin/false --gecos "Kamailio" \
33
--home $HOMEDIR kamailio || true
37
abort-upgrade|abort-remove|abort-deconfigure)
42
echo "postinst called with unknown argument \`$1'" >&2