您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/sh
  2. # preinst script for snf-server
  3. #
  4. # see: dh_installdeb(1)
  5. set -e
  6. # summary of how this script can be called:
  7. # * <new-preinst> `install'
  8. # * <new-preinst> `install' <old-version>
  9. # * <new-preinst> `upgrade' <old-version>
  10. # * <old-preinst> `abort-upgrade' <new-version>
  11. # for details, see http://www.debian.org/doc/debian-policy/ or
  12. # the debian-policy package
  13. case "$1" in
  14. install|upgrade)
  15. # Create the snfuser user and group.
  16. getent group snfuser > /dev/null || /usr/sbin/groupadd -r snfuser
  17. getent passwd snfuser > /dev/null || \
  18. /usr/sbin/useradd -r -g snfuser -s /sbin/nologin \
  19. -c "Sniffer Account" snfuser
  20. ;;
  21. abort-upgrade)
  22. ;;
  23. *)
  24. echo "preinst called with unknown argument \`$1'" >&2
  25. exit 1
  26. ;;
  27. esac
  28. # dh_installdeb will replace this with shell code automatically
  29. # generated by other debhelper scripts.
  30. #DEBHELPER#
  31. exit 0