This file is indexed.

postinst is in apprecommender 0.7.5-2.

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

if [ ! -d /var/lib/apprecommender ]; then
    mkdir /var/lib/apprecommender
fi

chgrp -R apprec /var/lib/apprecommender 2>/dev/null ||
    {
        addgroup --system apprec
        chgrp -R apprec /var/lib/apprecommender
    }

chown -R apprec /var/lib/apprecommender 2>/dev/null ||
    {
        adduser --system --home /usr/share/apprec --shell /bin/sh --no-create-home --disabled-password --ingroup apprec  apprec
        chown -R apprec /var/lib/apprecommender
    }

update-apt-xapian-index
runuser -c "apprec --update" apprec
runuser -c "apprec --enable-apt" apprec


# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
	pycompile -p apprecommender 
fi

# End automatically added section


exit 0