~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to pkg/kamailio/deb/lenny/kamailio.postinst

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
#
3
 
# $Id$
4
 
 
5
 
PKG=kamailio
6
 
DEFAULTS=/etc/default/kamailio
7
 
HOMEDIR=/var/run/kamailio
8
 
 
9
 
set -e
10
 
 
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>
15
 
#          <new-version>
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
21
 
#
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'.
28
 
 
29
 
case "$1" in
30
 
    configure)
31
 
        adduser --quiet --system --group --disabled-password \
32
 
                --shell /bin/false --gecos "Kamailio" \
33
 
                --home $HOMEDIR kamailio || true
34
 
 
35
 
        ;;
36
 
 
37
 
    abort-upgrade|abort-remove|abort-deconfigure)
38
 
 
39
 
        ;;
40
 
 
41
 
    *)
42
 
        echo "postinst called with unknown argument \`$1'" >&2
43
 
        exit 1
44
 
        ;;
45
 
esac
46
 
 
47
 
#DEBHELPER#
48