This file is indexed.

postinst is in pachi 1:1.0-7.

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

[ "$1" = configure ] || exit 0

if [ -x /usr/bin/update-menus ]; then
	update-menus
fi

SCOREFILE=/var/games/pachi/data/scores.dat
if [ ! -e $SCOREFILE ]; then
	dd if=/dev/zero of=$SCOREFILE bs=170 count=1 2> /dev/null
fi
chown root:games $SCOREFILE
chmod 0660       $SCOREFILE

exit 0