1
0

tang-xinetd.postinst 501 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  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. *)
  17. echo "postinst called with unknown argument '$1'" >&2
  18. exit 1
  19. ;;
  20. esac
  21. #DEBHELPER#
  22. exit 0