File: liquidsoap.postinst

package info (click to toggle)
liquidsoap 1.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,824 kB
  • sloc: ml: 39,805; python: 956; makefile: 523; sh: 452; xml: 105; perl: 76; lisp: 62; ansic: 53; ruby: 8
file content (37 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (2)
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
#! /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

addgroup --system liquidsoap

# Create the new system account
adduser --system --disabled-password --disabled-login \
--home /usr/share/liquidsoap --ingroup liquidsoap liquidsoap
usermod --append --groups audio liquidsoap

# 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 liquidsoap:liquidsoap /var/log/liquidsoap
chown root:root /usr/share/liquidsoap

#DEBHELPER#

exit 0