This file is indexed.

postinst is in radicale 0.8-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
27
28
29
30
31
#!/bin/sh
# postinst script for radicale

set -e

NAME=radicale
ACCOUNTNAME=$NAME
DAEMON_UID=$ACCOUNTNAME
DAEMON_GID=$ACCOUNTNAME
CALDIR=/var/lib/$NAME
ACCOUNTHOME=$CALDIR
GECOS="Radicale CalDAV server"

case "$1" in
  configure)
	if ! getent passwd $ACCOUNTNAME >/dev/null 2>&1; then
		adduser --system --home $ACCOUNTHOME --no-create-home \
			--gecos "$GECOS" --group --disabled-password \
			--quiet $ACCOUNTNAME
	fi
	;;
esac

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