This file is indexed.

postinst is in boinc-app-eah-brp 0.20170426+dfsg-10build1.

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

set -e

BOINC_DIR=/var/lib/boinc-client
PROJECT=eah_brp

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=$PROJECT --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