12345678910111213141516171819202122232425262728 |
- #!/bin/sh
- set -e
- LOG=/var/log/tangd.log
- case "$1" in
- configure)
- if ! getent passwd _tang >/dev/null; then
- adduser --quiet --system --group --no-create-home --home /nonexistent --force-badname _tang
- fi
- [ -f "$LOG" ] || install \
- --owner=_tang --group=_tang \
- --mode=644 \
- /dev/null "$LOG"
- ;;
- abort-upgrade|abort-remove|abort-deconfigure)
- ;;
- *)
- echo "postinst called with unknown argument '$1'" >&2
- exit 1
- ;;
- esac
- #DEBHELPER#
- exit 0
|