12345678910111213141516171819202122232425262728 |
- #!/bin/sh
- set -eu
- 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
|