This file is indexed.

postinst is in uruk 20131213-1.

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
41
42
43
44
#!/bin/sh

# uruk postinst

set -e

case "$1" in
  configure)
    if test -x /etc/init.d/uruk
    then
        update-rc.d uruk start 40 S . stop 89 0 1 6 . >/dev/null
    #
    # Don't call init script on initial install: we have no sane rules anyway.
    # We might want to run "invoke-rc.d uruk stop" in prerm.
    #
    fi

    if test -n "$2"
    then
        # we are called with a second argument, so are upgrading from a prior
        # version: second argument holds prior version
        if test -x /usr/sbin/invoke-rc.d
        then
            invoke-rc.d uruk force-reload || err=$?
        else
            /etc/init.d/uruk force-reload || err=$?
        fi

        # exit code 6 from init script indicates "program is not configured" per
        # LSB. we don't want to disable upgrading an unconfigured uruk.
        if test -n "$err"
        then
            test $err -eq 6 || exit $err
        fi
    fi
    ;;

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