mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
d58dc6c290
High scores were not saved when the game was installed from a package: fixed. PR: ports/76559 Submitted by: Jean-Yves Lefort <jylefort@brutele.be>
12 lines
211 B
Bash
12 lines
211 B
Bash
#!/bin/sh
|
|
|
|
SCOREDIR="/var/games"
|
|
SCOREFILE="/var/games/dd2-hiscore"
|
|
|
|
[ "$2" != "POST-INSTALL" -o -f "$SCOREFILE" ] && exit 0
|
|
|
|
mkdir -p $SCOREDIR
|
|
touch $SCOREFILE
|
|
chown root:games $SCOREFILE
|
|
chmod 664 $SCOREFILE
|