File: postinst

package info (click to toggle)
abuse-lib 2.00-18
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze
  • size: 6,776 kB
  • ctags: 364
  • sloc: lisp: 5,618; makefile: 41; sh: 17
file content (20 lines) | stat: -rw-r--r-- 626 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

if [ -d /var/lib/games/abuse ]; then
	# Old version of abuse package made files in /var/lib/games/abuse
	# that were owned by root.root. Fix it so they will now be owned 
	# by root.games, and move them to /var/games.
	chown -f root:games /var/lib/games/abuse/* || true
	chmod -f g+rw /var/lib/games/abuse/* || true
	mv /var/lib/games/abuse/* /var/games/abuse
	rmdir /var/lib/games/abuse 2>/dev/null || true
fi

# Old versions shipped with these dirs group rw.
chmod g-w /usr/share/games/abuse-lib/*

# Fix properties upon installation
chown root:games /var/games/abuse
chmod g+rws /var/games/abuse

#DEBHELPER#