File: postinst

package info (click to toggle)
bsdgames-nonfree 2.17-10
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 1,652 kB
  • sloc: ansic: 9,985; sh: 1,185; makefile: 23
file content (22 lines) | stat: -rw-r--r-- 468 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
#!/bin/sh

set -e

VARDIR=/var/games/bsdgames-nonfree
SCOREFILES="$VARDIR/rogue.scores"
OLDDIR=/var/lib/games/bsdgames-nonfree

# See if the files exist in an old pre-FHS directory and move them if so.
if [ -d $OLDDIR ]; then
	if [ -e $OLDDIR/rogue.scores ]; then
		mv -f $OLDDIR/rogue.scores $VARDIR/rogue.scores
	fi
fi

# Older versions may have set bad permissions
chmod a+x $VARDIR
touch $SCOREFILES
chown root:games $SCOREFILES
chmod 664 $SCOREFILES

#DEBHELPER#