This file is indexed.

postinst is in sipml5-web-phone 0.0.20130314.2030-3.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
36
37
38
39
40
#!/bin/sh

set -e

. /usr/share/debconf/confmodule
db_version 2.0 || [ $? -lt 30 ]

if [ "$1" = "configure" ]; then

    db_get sipml5-web-phone/webserver
    autoconfigure="$RET"
    webserver="apache2"

    if [ "$autoconfigure" = true ]; then
        test -x /usr/sbin/$webserver || continue

        # Auto-configure module dependencies

        if [ -d /etc/$webserver/conf.d -a ! -f /etc/$webserver/conf.d/sipml5-web-phone -a ! -h /etc/$webserver/conf.d/sipml5-web-phone ]; then
            ln -s /etc/sipml5-web-phone/apache.conf /etc/$webserver/conf.d/sipml5-web-phone
        fi

        # Apache 2.4 uses conf-available instead of conf.d:
        if [ -d /etc/$webserver/conf-available -a ! -f /etc/$webserver/conf-available/sipml5-web-phone -a ! -h /etc/$webserver/conf-available/sipml5-web-phone ]; then
            ln -s /etc/sipml5-web-phone/apache.conf /etc/$webserver/conf-available/sipml5-web-phone
        fi

        # Restart apache2 if requested
        db_get sipml5-web-phone/reload
        if [ "$RET" = "true" ]; then
            if [ -x /usr/sbin/invoke-rc.d ]; then
                invoke-rc.d $webserver reload
            else
                /etc/init.d/$webserver reload
            fi
        fi

    fi

fi