This file is indexed.

postinst is in xpat2 1.07-20.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
#!/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

# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section