This file is indexed.

postinst is in pinball 0.3.1-14.

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
#! /bin/sh
 
set -e
 
if [ "$1" = "configure" ] ; then
 
TABLES="professor tux"

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

if [ ! -d /var/games/pinball ]; then
        mkdir /var/games/pinball
fi
 
for DIRS in $TABLES; do

	if [ ! -d /var/games/pinball/$DIRS ]; then
       		mkdir /var/games/pinball/$DIRS
	fi

	if [ -e /var/games/pinball/$DIRS/highscores ]; then
		continue
	fi

	touch /var/games/pinball/$DIRS/highscores
	chown root:games /var/games/pinball/$DIRS/highscores
	chmod 664 /var/games/pinball/$DIRS/highscores
done

fi