File: stenographer-common.postinst

package info (click to toggle)
stenographer 1.0.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,192 kB
  • sloc: cpp: 2,087; sh: 830; yacc: 257; makefile: 102
file content (24 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

CERTDIR=/etc/stenographer/certs

if [ "$1" = configure ]; then
    if ! getent passwd stenographer >/dev/null; then
        adduser \
            --system --group --no-create-home --home /var/lib/stenographer \
            stenographer
    fi
    if ! dpkg-statoverride --list $CERTDIR >/dev/null 2>&1; then
        dpkg-statoverride \
            --quiet --update \
            --add stenographer stenographer 0750 $CERTDIR
    fi

    install -d -ostenographer -gstenographer -m750 /var/lib/stenographer
fi

stenokeys stenographer stenographer

#DEBHELPER#