File: postinst

package info (click to toggle)
xbill 2.1-7
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 736 kB
  • ctags: 552
  • sloc: ansic: 3,250; sh: 197; makefile: 129
file content (24 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e 

OLD=/var/lib/games/xbill/scores
OLD2=/var/lib/games/xbill.scores
SCORES=/var/games/xbill.scores

if [ -e $OLD ]; then
  mv $OLD $SCORES
  rmdir /var/lib/games/xbill
elif  [ -e $OLD2 ]; then
  mv $OLD2 $SCORES
else
  if [ ! -e $SCORES ]; then
    cp $SCORES.default $SCORES
  fi
fi

chown root:games $SCORES
chmod 0664 $SCORES

#DEBHELPER#