This file is indexed.

postinst is in zorp 3.9.5-4.

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 -e

if [ "$1" = "configure" ]; then
  if ! getent group zorp >/dev/null 2>&1; then
    addgroup --quiet --system zorp
  fi

  if ! id zorp >/dev/null 2>&1; then
    adduser --quiet --system --no-create-home --ingroup zorp --home /var/lib/zorp zorp
  fi

  chown -R root:zorp /etc/zorp
  chmod 0750 /etc/zorp

  if [ ! -d /var/lib/zorp/keybridge-cache ]; then
    mkdir -p /var/lib/zorp/keybridge-cache
  fi

  chown -R zorp:zorp /var/lib/zorp/keybridge-cache
  chmod 0770 /var/lib/zorp/keybridge-cache
fi

# Automatically added by dh_installinit
if [ -x "/etc/init.d/zorp" ]; then
	if [ ! -e "/etc/init/zorp.conf" ]; then
		update-rc.d zorp defaults >/dev/null
	fi
	invoke-rc.d zorp start || exit $?
fi
# End automatically added section
# Automatically added by dh_pysupport
if which update-python-modules >/dev/null 2>&1; then
	update-python-modules  zorp.private
fi
# End automatically added section