File: preinst

package info (click to toggle)
phalanx 21-12
  • links: PTS
  • area: main
  • in suites: potato
  • size: 808 kB
  • ctags: 524
  • sloc: ansic: 6,749; sh: 81; makefile: 64
file content (18 lines) | stat: -rw-r--r-- 317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

LEARNFILE=/var/games/phalanx.learn
OLDLEARNFILE=/var/lib/games/phalanx.learn

# Move the learning file

if test -e $OLDLEARNFILE; then
  if test ! -e $LEARNFILE; then
    if test ! -d /var/games; then
      mkdir /var/games
      chmod 755 /var/games
    fi
    mv $OLDLEARNFILE $LEARNFILE
  fi
fi