File: postinst

package info (click to toggle)
typespeed 0.6.5-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,584 kB
  • sloc: sh: 4,267; ansic: 3,794; makefile: 88; sed: 16
file content (27 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (2)
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#