File: console-log.postinst

package info (click to toggle)
console-log 2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 144 kB
  • sloc: python: 270; makefile: 17; sh: 9
file content (20 lines) | stat: -rwxr-xr-x 342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# postinst

set -e

USERNAME="Debian-console-log"

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

# Add user
if [ "$1" = "configure" ]; then
    adduser --ingroup adm --system $USERNAME
    if dpkg --compare-versions "$2" lt 2.0; then
      update-rc.d -f console-log remove || true
    fi
fi

#DEBHELPER#

# vim:tabstop=4:expandtab:shiftwidth=4