File: postinst

package info (click to toggle)
krb5-strength 3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,112 kB
  • sloc: ansic: 8,236; sh: 4,977; perl: 1,528; makefile: 181
file content (20 lines) | stat: -rwxr-xr-x 544 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
#!/bin/sh

set -e

# Add a user to own the password history database.
if ! getent passwd _history >/dev/null; then
    echo 'Adding system user for password history' 1>&2
    adduser --disabled-login --quiet --system --no-create-home \
        --home /var/lib/heimdal-history --force-badname --group _history
fi

# Create the directory for the history database, owned by the history user.
if [ ! -d /var/lib/heimdal-history ]; then
    mkdir /var/lib/heimdal-history
    chown _history:_history /var/lib/heimdal-history
fi

#DEBHELPER#

exit 0