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.

postrm 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/bin/sh
  2. # postrm script for snf-server
  3. #
  4. # see: dh_installdeb(1)
  5. set -e
  6. # summary of how this script can be called:
  7. # * <postrm> `remove'
  8. # * <postrm> `purge'
  9. # * <old-postrm> `upgrade' <new-version>
  10. # * <new-postrm> `failed-upgrade' <old-version>
  11. # * <new-postrm> `abort-install'
  12. # * <new-postrm> `abort-install' <old-version>
  13. # * <new-postrm> `abort-upgrade' <old-version>
  14. # * <disappearer's-postrm> `disappear' <overwriter>
  15. # <overwriter-version>
  16. # for details, see http://www.debian.org/doc/debian-policy/ or
  17. # the debian-policy package
  18. case "$1" in
  19. purge)
  20. service snf-server stop
  21. rm -rf /etc/snf-server /usr/share/snf-server /var/log/snf-server
  22. # Remove configuration to start SNFServer on boot.
  23. /usr/sbin/update-rc.d snf-server remove
  24. ;;
  25. remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  26. service snf-server stop
  27. ;;
  28. *)
  29. echo "postrm 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