File: console-log.postinst

package info (click to toggle)
console-log 1.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 100 kB
  • sloc: sh: 320; makefile: 15
file content (18 lines) | stat: -rwxr-xr-x 343 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e
# postinst

USERNAME="Debian-console-log"

[ -n "$CONLOGDEBUG" ] && set -x

# Add user
if [ "$1" = "configure" ]; then
    echo >&2 'Adding system user'
    adduser --system --group --home /nonexistent \
	    --no-create-home --disabled-login --force-badname $USERNAME
    adduser $USERNAME adm
fi
    
#DEBHELPER#

# end of file