File: postinst

package info (click to toggle)
thrust 0.89c-3.5
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,080 kB
  • ctags: 996
  • sloc: ansic: 20,409; sh: 2,483; makefile: 332
file content (21 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

if [ -f /var/lib/games/thrust.highscore ]
then
    if [ -f /var/games/thrust.highscore ]
    then
	echo "Saving the new highscores for you to /var/games/thrust/highscore.new"
	mv /var/games/thrust.highscore /var/games/thrust.highscore.new	
    fi
    echo Moving the old highscore file to the new place
    mv /var/lib/games/thrust.highscore /var/games/thrust.highscore
fi

# Create a high score file.
touch /var/games/thrust.highscore
# Always fix permissions, because an old version of the package got them 
# wrong.
chown root.games /var/games/thrust.highscore
chmod 664 /var/games/thrust.highscore

#DEBHELPER#