This file is indexed.

postinst is in boinc-app-seti 5.13+cvs20060510-7ubuntu1.

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
# postinst script for boinc-app-seti

set -e

BOINC_DIR=/var/lib/boinc-client

init_boinc_client()
{
    if which invoke-rc.d >/dev/null 2>&1; then
        invoke-rc.d boinc-client $1
    else
        /etc/init.d/boinc-client $1
    fi
}

case "$1" in
    configure)
        update-boinc-applinks --create --project=seti --data-dir=$BOINC_DIR
        chown -R boinc:boinc $BOINC_DIR/projects 2>/dev/null || true

        # Restart the BOINC core client after update-boinc-applinks has
        # created the symlinks for the anonymous application(s) and the
        # app_info.xml file.
        init_boinc_client restart
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac



exit 0