File: postinst

package info (click to toggle)
xpat2 1.07-20
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 3,504 kB
  • ctags: 2,572
  • sloc: ansic: 13,770; perl: 3,068; cpp: 2,935; makefile: 192; sh: 33
file content (23 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

set -e

if [ -d /var/lib/games/xpat2 ] ; then
	chmod 2775 /var/lib/games/xpat2
fi

# In older versions, /var/lib/games/xpat2/xpat was -rw-r--r-- games.root

if [ -f /var/lib/games/xpat2/xpat.log ]; then
    chown root:games /var/lib/games/xpat2/xpat.log
    chmod 664 /var/lib/games/xpat2/xpat.log
fi

# /var/lib/games/xpat2 changed location to /var/games/xpat2.

if [ -f /var/lib/games/xpat2/xpat.log ]; then
    mv -f /var/lib/games/xpat2/xpat.log /var/games/xpat2
    rm -rf /var/lib/games/xpat2
fi

#DEBHELPER#