File: postinst

package info (click to toggle)
ajaxterm 0.10-12
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 844 kB
  • ctags: 1,787
  • sloc: python: 10,425; sh: 96; makefile: 51
file content (25 lines) | stat: -rw-r--r-- 543 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
#! /bin/sh
set -e

case "$1" in
  configure)
    if ! getent passwd ajaxterm >/dev/null; then
        adduser --disabled-password  --quiet --system \
            --no-create-home \
            --gecos "Ajaxterm system user" --group ajaxterm
    else
        # Unlock account in case it was locked from previous purge.
        usermod -U -e '' ajaxterm > /dev/null || true
    fi
  ;;
  abort-upgrade|abort-remove|abort-deconfigure)
  ;;
  *)
    echo "postinst called with unknown argument \`$1'" >&2
    exit 1
  ;;
esac

#DEBHELPER#

exit 0