File: preinst

package info (click to toggle)
phalanx 25-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,048 kB
  • sloc: ansic: 8,829; sh: 80; makefile: 79
file content (20 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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

#DEBHELPER#