summaryrefslogtreecommitdiff
path: root/staging/pathological/pathological.install
blob: 4bc716839a7a1b25e081cc614a004a9141b2aa6a (plain)
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
26
27
28
29
post_install() {
if [ ! -e var/games/pathological_scores ]; then
    cat << _EOF > var/games/pathological_scores
0 all-boards 1 John-Paul
0 all-boards 1 Kim
0 all-boards 1 Matths
0 all-boards 1 Carrie
0 all-boards 1 Mike
0 all-boards 1 Dale
0 all-boards 1 Alesh
0 all-boards 1 Thanks to
0 all-boards 1 everyone who
0 all-boards 1 contributed!
_EOF
fi
  chown root:games var/games/pathological_scores
  chmod 664 var/games/pathological_scores
}

pre_upgrade() {
  if [ -e usr/share/games/pathological/pathological_scores ]; then
    mv usr/share/games/pathological/pathological_scores var/games/
  fi
}

post_upgrade() {
  chown root:games var/games/pathological_scores
  chmod 664 var/games/pathological_scores
}