File: postinst

package info (click to toggle)
xjump 2.9.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 256 kB
  • sloc: ansic: 1,037; makefile: 78; sh: 30
file content (19 lines) | stat: -rwxr-xr-x 478 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

if [ "$1" = configure ]; then
  if test -f /var/lib/games/xjump/record; then
    echo -n "Moving xjump record file to /var/games/xjump... "
    mv /var/lib/games/xjump/record /var/games/xjump/
    rmdir /var/lib/games/xjump/ 2> /dev/null || true
    echo "done."
  elif ! test -f /var/games/xjump/record; then
    touch /var/games/xjump/record
  fi
  chmod 660 /var/games/xjump/*
  chgrp -R games /var/games/xjump
  chmod 775 /var/games/xjump
fi

#DEBHELPER#