home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / apport.postinst < prev    next >
Encoding:
Text File  |  2009-09-25  |  1.2 KB  |  37 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installmime
  4. if [ "$1" = "configure" ] && [ -x "`which update-mime-database 2>/dev/null`" ]; then
  5.     update-mime-database /usr/share/mime
  6. fi
  7. # End automatically added section
  8. # Automatically added by dh_pycentral
  9. rm -f /var/lib/pycentral/apport.pkgremove
  10. if which pycentral >/dev/null 2>&1; then
  11.     pycentral pkginstall apport
  12.     if grep -qs '^apport$' /var/lib/pycentral/delayed-pkgs; then
  13.         sed -i '/^apport$/d' /var/lib/pycentral/delayed-pkgs
  14.     fi
  15. fi
  16. # End automatically added section
  17. # Automatically added by dh_installmime
  18. if [ "$1" = "configure" ] && [ -x "`which update-mime-database 2>/dev/null`" ]; then
  19.     update-mime-database /usr/share/mime
  20. fi
  21. # End automatically added section
  22. # Automatically added by dh_icons
  23. if which update-icon-caches >/dev/null 2>&1 ; then
  24.     update-icon-caches /usr/share/icons/hicolor
  25. fi
  26. # End automatically added section
  27. # Automatically added by dh_installinit
  28. if [ -x "/etc/init.d/apport" ]; then
  29.     update-rc.d apport defaults >/dev/null
  30.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  31.         invoke-rc.d apport start || exit $?
  32.     else
  33.         /etc/init.d/apport start || exit $?
  34.     fi
  35. fi
  36. # End automatically added section
  37.