This file is indexed.

postinst is in panko-common 4.0.0-0ubuntu1.

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

if [ "$1" = "configure" ]; then
   if ! getent group panko > /dev/null 2>&1; then
       addgroup --system panko >/dev/null
   fi

   if ! getent passwd panko > /dev/null 2>&1; then
       adduser --system --home /var/lib/panko --ingroup panko --no-create-home --shell /bin/false panko
   fi

   chown -R panko:panko /var/log/panko
   chmod 0750 /var/log/panko
   chown -R panko:panko /var/lib/panko /etc/panko

   if [ -e /var/lib/panko/panko.sqlite ];
   then
       chmod panko:panko /var/lib/panko/panko.sqlite
       chmod 640 /var/lib/panko/panko.sqlite
   fi

   chown -R panko:adm /var/log/panko
   chmod 0750 /var/log/panko
   chown -R panko:panko /var/lib/panko /etc/panko

fi