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.

41 lines
978 B

  1. #!/bin/sh
  2. # postrm script for ethermint
  3. #
  4. set -e
  5. # summary of how this script can be called:
  6. # * <postrm> `remove'
  7. # * <postrm> `purge'
  8. # * <old-postrm> `upgrade' <new-version>
  9. # * <new-postrm> `failed-upgrade' <old-version>
  10. # * <new-postrm> `abort-install'
  11. # * <new-postrm> `abort-install' <old-version>
  12. # * <new-postrm> `abort-upgrade' <old-version>
  13. # * <disappearer's-postrm> `disappear' <overwriter>
  14. # <overwriter-version>
  15. # for details, see https://www.debian.org/doc/debian-policy/ or
  16. # the debian-policy package
  17. case "$1" in
  18. upgrade|failed-upgrade|abort-upgrade)
  19. systemctl daemon-reload
  20. ;;
  21. purge|remove|abort-install|disappear)
  22. systemctl daemon-reload
  23. ;;
  24. *)
  25. echo "postrm called with unknown argument \`$1'" >&2
  26. exit 1
  27. ;;
  28. esac
  29. # dh_installdeb will replace this with shell code automatically
  30. # generated by other debhelper scripts.
  31. #DEBHELPER#
  32. exit 0