File: postinst

package info (click to toggle)
abuse-lib 2.00-14
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,764 kB
  • ctags: 364
  • sloc: lisp: 5,618; makefile: 43; sh: 15
file content (16 lines) | stat: -rw-r--r-- 525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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/lib/games/abuse-lib/*

#DEBHELPER#