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
|
#!/bin/sh
set -e
# Newer (post-0.6) versions of Typespeed use a single text-based
# file at $SCOREFILE.
# Create it and assign the correct permissions
SCOREFILE=/var/games/typespeed.score
if test "$1" = "configure"; then
# Ensure new high score file exists and has proper permissions.
if ! test -e $SCOREFILE; then
touch $SCOREFILE
chown root:games $SCOREFILE
chmod 664 $SCOREFILE
fi
# Fix permissions
chgrp games /usr/games/typespeed
chmod g+s /usr/games/typespeed
fi
#DEBHELPER#
|