Debian Codegraph @

debian/crawl-common.postinst

raw
1 #!/bin/sh
2 set -e
3
4 # Everything here is clean-up from old versions that used to be setgid.
5
6 OLDDIR=/var/games/crawl/saves
7 DIR=/var/games/crawl
8
9 # Drop the old db cache; the new one is in ~/.crawl/ for security reasons.
10 rm -rf $OLDDIR/db
11 rm -rf $OLDDIR/des
12 rm -f $OLDDIR/*.prf
13
14 # We keep old saves and bones for now, they're incompatible but the user may
15 # decide to downgrade to complete a game in progress.
16 rmdir $OLDDIR $DIR/morgue $DIR >/dev/null 2>/dev/null || true
17
18 #DEBHELPER#