summarylogtreecommitdiffstats
path: root/maelstrom.install
blob: e82790929052667d4ead1c086b1213e2b56da654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pre_upgrade() {
  if [ -f usr/games/Maelstrom-Scores ]; then
    mv usr/games/Maelstrom-Scores var/games/Maelstrom.scores.old
  fi
}

post_upgrade() {
  if [ -f var/games/Maelstrom.scores.old ]; then
    mv var/games/Maelstrom.scores.old var/games/Maelstrom.scores
    chown root:games var/games/Maelstrom.scores
    chmod 664 var/games/Maelstrom.scores
  fi
}

op=$1
shift

$op $*