This file is indexed.

postinst is in xsok 1.02-17.1.

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

set -e

# In older versions, /var/lib/games/xsok/* were -rw-r--r-- games.root

if [ -d /var/lib/games/xsok ] ; then
    chown root:games /var/lib/games/xsok /var/lib/games/xsok/*
    chmod 2775 /var/lib/games/xsok
    chmod 664 /var/lib/games/xsok/*
fi

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

if [ -d /var/lib/games/xsok ]; then
    rm -rf /var/games/xsok
    cp -a /var/lib/games/xsok /var/games
    rm -rf /var/lib/games/xsok
fi


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