This file is indexed.

postinst is in liquidsoap 1.0.0-4build1.

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
45
46
47
48
49
#! /bin/sh
# postinst script for liquidsoap
set -e

case "$1" in
    configure)
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    exit 0
    ;;

    *)
    echo "postinst called with unknown argument \`$1'" >&2
    exit 1
    ;;
esac

if ! getent group liquidsoap >/dev/null 2>&1; then
    addgroup --system liquidsoap
fi

# Check for an account named 'liquidsoap'
if ! id liquidsoap >/dev/null 2>&1; then
    # Create the new system account
    adduser --system --disabled-password --disabled-login \
    --home /usr/share/liquidsoap --ingroup liquidsoap liquidsoap
fi

# Add again /usr/share/liquidsoap if user was already created
if ! test -d /usr/share/liquidsoap; then
    mkdir /usr/share/liquidsoap
fi

# Fix directories ownership
chown -R root:root /usr/share/liquidsoap
chown -R liquidsoap:liquidsoap /var/log/liquidsoap

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


exit 0