File: postinst

package info (click to toggle)
pysycache 3.1-3.2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 50,004 kB
  • ctags: 472
  • sloc: python: 5,146; lisp: 1,152; sh: 102; makefile: 51; ansic: 4
file content (29 lines) | stat: -rw-r--r-- 564 bytes parent folder | download | duplicates (3)
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
#! /bin/sh
# postinst script for pysycache
set -e

case "$1" in
    configure)
	chown -R :games /var/games/pysycache
	chmod -R 775 /var/games/pysycache
    chown root:games /usr/share/games/pysycache/game.sh
    chmod 2755 /usr/share/games/pysycache/game.sh   
    chown root:games /usr/share/games/pysycache/pysycache.py
    chmod 2755 /usr/share/games/pysycache/pysycache.py
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0