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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/sh
  2. # postinst script for snf-server
  3. #
  4. # see: dh_installdeb(1)
  5. # summary of how this script can be called:
  6. # * <postinst> `configure' <most-recently-configured-version>
  7. # * <old-postinst> `abort-upgrade' <new version>
  8. # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  9. # <new-version>
  10. # * <postinst> `abort-remove'
  11. # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  12. # <failed-install-package> <version> `removing'
  13. # <conflicting-package> <version>
  14. # for details, see http://www.debian.org/doc/debian-policy/ or
  15. # the debian-policy package
  16. case "$1" in
  17. configure)
  18. # Configure with testmode rulebase, no integration.
  19. /usr/sbin/SNFServerConfig -setup
  20. # Configure SNFServer to start on boot.
  21. /usr/sbin/update-rc.d snf-server defaults
  22. # Start the SNFServer service.
  23. /usr/sbin/service snf-server start
  24. /usr/sbin/service snf-server status
  25. ;;
  26. abort-upgrade|abort-remove|abort-deconfigure)
  27. ;;
  28. *)
  29. echo "postinst called with unknown argument \`$1'" >&2
  30. exit 1
  31. ;;
  32. esac
  33. # dh_installdeb will replace this with shell code automatically
  34. # generated by other debhelper scripts.
  35. #DEBHELPER#
  36. exit 0