This file is indexed.

postinst is in zorp 3.9.5-7.

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
36
37
38
39
40
41
42
43
44
#!/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 dhpython:
if which pycompile >/dev/null 2>&1; then
	pycompile -p zorp /usr/share/zorp
fi

# End automatically added section

# Automatically added by dhpython:
if which pycompile >/dev/null 2>&1; then
	pycompile -p zorp /usr/share/zorp/pylib/Zorp
fi

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