postinst is in pinball 0.3.1-13.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 34 35 36 37 38 | #! /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
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
|