File: postinst

package info (click to toggle)
purity 1-17
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge, squeeze
  • size: 148 kB
  • ctags: 83
  • sloc: ansic: 817; makefile: 52; sh: 17
file content (18 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#DEBHELPER#
if [ -f /var/lib/games/purity.scores ]
then
	mv /var/lib/games/purity.scores /var/games/purity.scores
elif [ ! -f /var/games/purity.scores ]
then
	touch /var/games/purity.scores
	chmod 660 /var/games/purity.scores
	chown root.games /var/games/purity.scores;
fi

# Set perms
if [ -f /usr/games/purity -a ! -g /usr/games/purity ]
then
	chown root.games /usr/games/purity
	chmod g+s /usr/games/purity
fi