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.

39 lines
961 B

  1. #!/bin/sh
  2. # prerm script for cosmos-sdk
  3. #
  4. set -e
  5. # summary of how this script can be called:
  6. # * <prerm> `remove'
  7. # * <old-prerm> `upgrade' <new-version>
  8. # * <new-prerm> `failed-upgrade' <old-version>
  9. # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
  10. # * <deconfigured's-prerm> `deconfigure' `in-favour'
  11. # <package-being-installed> <version> `removing'
  12. # <conflicting-package> <version>
  13. # for details, see https://www.debian.org/doc/debian-policy/ or
  14. # the debian-policy package
  15. case "$1" in
  16. remove|upgrade|deconfigure)
  17. systemctl stop cosmos-sdk 2> /dev/null || :
  18. systemctl stop cosmos-sdk-service 2> /dev/null || :
  19. ;;
  20. failed-upgrade)
  21. ;;
  22. *)
  23. echo "prerm called with unknown argument \`$1'" >&2
  24. exit 1
  25. ;;
  26. esac
  27. # dh_installdeb will replace this with shell code automatically
  28. # generated by other debhelper scripts.
  29. #DEBHELPER#
  30. exit 0