File: heroes.postinst

package info (click to toggle)
heroes 0.21-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,796 kB
  • sloc: ansic: 27,951; sh: 3,941; makefile: 651; yacc: 318; sed: 51; lisp: 10; perl: 9
file content (24 lines) | stat: -rw-r--r-- 462 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
20
21
22
23
24
#!/bin/sh

set -e

if [ "$1" = "configure" ]
then
  if [ -d /var/games/heroes ]
  then
    # Just in case someone somehow got the wrong permissions on the directory.
    chown root:root /var/games/heroes
    chmod 755 /var/games/heroes
  fi

  # Create /var/games/heroes/scores
  if ! [ -f /var/games/heroes/scores ]
  then
    touch /var/games/heroes/scores
  fi

  chown root:games /var/games/heroes/scores
  chmod 664 /var/games/heroes/scores
fi

#DEBHELPER#