This file is indexed.

postinst is in heroes-common 0.21-9ubuntu1.

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

if [ "$1" = "configure" ]
then
  if [ -d /var/games/heroes ]
  then
    # Just in case someone somehow got the wrong permissions on the directory.
    chown root:root /var/games/heroes
    chmod 755 /var/games/heroes
  fi

  # Create /var/games/heroes/scores
  if ! [ -f /var/games/heroes/scores ]
  then
    touch /var/games/heroes/scores
  fi

  chown root:games /var/games/heroes/scores
  chmod 664 /var/games/heroes/scores
fi