You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
786 B

  1. #!/bin/sh
  2. # preinst script for trackomatron
  3. #
  4. set -e
  5. # summary of how this script can be called:
  6. # * <new-preinst> `install'
  7. # * <new-preinst> `install' <old-version>
  8. # * <new-preinst> `upgrade' <old-version>
  9. # * <old-preinst> `abort-upgrade' <new-version>
  10. # for details, see https://www.debian.org/doc/debian-policy/ or
  11. # the debian-policy package
  12. case "$1" in
  13. install|upgrade)
  14. if ! grep -q '^trackomatron:' /etc/passwd ; then
  15. useradd -k /dev/null -r -m -b /etc trackomatron
  16. fi
  17. ;;
  18. abort-upgrade)
  19. ;;
  20. *)
  21. echo "preinst called with unknown argument \`$1'" >&2
  22. exit 1
  23. ;;
  24. esac
  25. # dh_installdeb will replace this with shell code automatically
  26. # generated by other debhelper scripts.
  27. #DEBHELPER#
  28. exit 0