postinst is in moria 5.6.debian.1-2+b2.
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 | #!/bin/sh -e
SCOREFILES="/var/games/moria/scores"
# If the score file is not extant, touch it into existence.
for file in $SCOREFILES; do
if [ ! -e $file ]; then
touch $file
chown root:games $file
chmod 664 $file
fi
done
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
|