This file is indexed.

postinst is in onionbalance 0.1.3-3.

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
28
29
30
31
32
33
34
35
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
    if ! getent passwd onionbalance >/dev/null; then
        adduser --quiet --system --group --no-create-home --home /nonexistent onionbalance
        adduser onionbalance debian-tor
    fi
fi

chown onionbalance:adm /var/log/onionbalance
# rwxr-s---
chmod 02750 /var/log/onionbalance


# Automatically added by dhpython:
if which py3compile >/dev/null 2>&1; then
	py3compile -p onionbalance 
fi

# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/onionbalance" ]; then
		update-rc.d onionbalance defaults >/dev/null
	fi
	if [ -x "/etc/init.d/onionbalance" ] || [ -e "/etc/init/onionbalance.conf" ]; then
		invoke-rc.d onionbalance start || exit $?
	fi
fi
# End automatically added section


exit 0