This file is indexed.

postinst is in openerp6.1-core 6.1-1+dfsg-0ubuntu3.

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
#!/bin/sh

set -e

case "${1}" in
    configure)
        if ! getent passwd | grep -q "^openerp:"; then
            adduser --system --no-create-home --quiet --gecos 'OpenERP' --group openerp
        fi

	# change permissions
        chown openerp:openerp /etc/openerp/openerp-server.conf
        chmod 0640 /etc/openerp/openerp-server.conf
        # Creating log file
        touch /var/log/openerp-server.log
        chown openerp:openerp /var/log/openerp-server.log
        chmod 0640 /var/log/openerp-server.log
        # Creating local storage directory
        mkdir -p /usr/share/openerp/filestore
        chown openerp:openerp -R /usr/share/openerp

        ;;
    *)
        ;;
esac


# Automatically added by dh_installinit
if [ -x "/etc/init.d/openerp-server" ]; then
	if [ ! -e "/etc/init/openerp-server.conf" ]; then
		update-rc.d openerp-server defaults 21 >/dev/null
	fi
	invoke-rc.d openerp-server start || exit $?
fi
# End automatically added section


exit 0