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.

38 lines
902 B

  1. #!/bin/sh
  2. # prerm script for basecoin
  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 basecoind 2> /dev/null || :
  18. ;;
  19. failed-upgrade)
  20. ;;
  21. *)
  22. echo "prerm called with unknown argument \`$1'" >&2
  23. exit 1
  24. ;;
  25. esac
  26. # dh_installdeb will replace this with shell code automatically
  27. # generated by other debhelper scripts.
  28. #DEBHELPER#
  29. exit 0