File: postinst

package info (click to toggle)
xboing 2.4-26.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,108 kB
  • ctags: 1,516
  • sloc: ansic: 17,999; sh: 51; makefile: 44
file content (16 lines) | stat: -rw-r--r-- 277 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

OLDSCOREFILE=/var/lib/games/xboing.score
SCOREFILE=/var/games/xboing.score

if [ -e "$OLDSCOREFILE" ]; then
	mv $OLDSCOREFILE $SCOREFILE
fi

if [ ! -e "$SCOREFILE" ]; then
	touch "$SCOREFILE"
	chown root.games "$SCOREFILE"
	chmod 664 "$SCOREFILE"
fi

#DEBHELPER#