File: postinst

package info (click to toggle)
xonix 1.4-13
  • links: PTS
  • area: main
  • in suites: potato
  • size: 304 kB
  • ctags: 502
  • sloc: ansic: 3,676; makefile: 38; sh: 22
file content (25 lines) | stat: -rw-r--r-- 383 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
23
24
25
#!/bin/sh

OLD=/var/lib/games/xonix/scores
SCORES=/var/lib/games/xonix.scores

if [ -e $OLD ]; then
  mv $OLD $SCORES
  rmdir /var/lib/games/xonix
  chown root.games $SCORES
  chmod 0664 $SCORES
else
  if [ ! -e ${SCORES%/*} ]; then
    mkdir ${SCORES%/*}
  fi

  if [ ! -e $SCORES ]; then
    touch $SCORES
    chown root.games $SCORES
    chmod 0664 $SCORES
  fi
fi


#DEBHELPER#