apt.postinst 1019 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #! /bin/sh
  2. set -e
  3. # summary of how this script can be called:
  4. # * <postinst> `configure' <most-recently-configured-version>
  5. # * <old-postinst> `abort-upgrade' <new version>
  6. # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  7. # <new-version>
  8. # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  9. # <failed-install-package> <version> `removing'
  10. # <conflicting-package> <version>
  11. # for details, see http://www.debian.org/doc/debian-policy/ or
  12. # the debian-policy package
  13. case "$1" in
  14. configure)
  15. if ! test -f /etc/apt/trusted.gpg; then
  16. cp /usr/share/apt/debian-archive.gpg /etc/apt/trusted.gpg
  17. fi
  18. apt-key update
  19. ;;
  20. abort-upgrade|abort-remove|abort-deconfigure)
  21. ;;
  22. *)
  23. echo "postinst 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