This file is indexed.

postinst is in oar-web-status 2.5.7-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
#! /bin/sh
set -e
#set -x

. /usr/share/debconf/confmodule

. /usr/lib/oar/setup/www-conf.sh
. /usr/lib/oar/setup/monika.sh
. /usr/lib/oar/setup/drawgantt-svg.sh

PACKAGE=oar-web-status

case "$1" in
    configure)
        www_conf_setup
        monika_setup
        drawgantt_svg_setup
        MSG="Please enable an Apache CGI module (e.g. cgi or cgid) for the Monika web app to function."
        if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
            . /usr/share/apache2/apache2-maintscript-helper
            apache2_has_module cgi || apache2_has_module cgid || apache2_msg info "$MSG"
            apache2_invoke enconf oar-web-status.conf || exit $?
        else 
            echo "$MSG"
        fi
        ;;

    abort-upgrade|abort-remove|abort-deconfigure)
        ;;
    
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac



exit 0