1
0

tang-xinetd.postinst 561 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -eu
  3. log='/var/log/tangd.log'
  4. case "$1" in
  5. configure)
  6. if ! getent passwd _tang >/dev/null; then
  7. adduser --quiet --system --group --no-create-home --home /nonexistent --force-badname _tang
  8. fi
  9. [ -f "$log" ] || install \
  10. --owner=_tang --group=_tang \
  11. --mode=644 \
  12. /dev/null "$log"
  13. ;;
  14. abort-upgrade | abort-remove | abort-deconfigure) ;;
  15. *)
  16. echo "postinst called with unknown argument '$1'" >&2
  17. exit 1
  18. ;;
  19. esac
  20. #DEBHELPER#
  21. exit 0