home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / firefox.postinst < prev    next >
Encoding:
Text File  |  2007-04-03  |  1.5 KB  |  49 lines

  1. #!/bin/sh -e
  2.  
  3. if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
  4.     update-alternatives --install /usr/bin/x-www-browser \
  5.         x-www-browser /usr/bin/firefox 70 \
  6.         --slave /usr/share/man/man1/x-www-browser.1.gz \
  7.         x-www-browser.1.gz /usr/share/man/man1/firefox.1.gz
  8.     update-alternatives --install /usr/bin/mozilla mozilla \
  9.         /usr/bin/firefox 0 \
  10.         --slave /usr/share/man/man1/mozilla.1.gz mozilla.1.gz \
  11.         /usr/share/man/man1/firefox.1.gz
  12.     touch /usr/lib/firefox/.autoreg
  13. fi
  14.  
  15. if [ -x /usr/sbin/update-desktop-database ]; then
  16.     /usr/sbin/update-desktop-database
  17. fi
  18.  
  19. # Automatically added by dh_installmenu
  20. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  21.     update-menus
  22. fi
  23. # End automatically added section
  24. # Automatically added by dh_installmime
  25. if [ "$1" = "configure" ] && [ -x "`which update-mime 2>/dev/null`" ]; then
  26.     update-mime
  27. fi
  28. # End automatically added section
  29.  
  30.  
  31. echo "Please restart any running Firefoxes, or you will experience problems."
  32.  
  33. unud=/var/lib/update-notifier/user.d
  34.  
  35. if pgrep firefox-bin >/dev/null 2>&1 && test -d $unud; then
  36.     cp -f /usr/share/firefox/firefox-restart-required.update-notifier \
  37.         "$unud/firefox-restart-required"
  38. fi
  39.  
  40. crd=/usr/lib/firefox/components/compreg.dat
  41. if test -f $crd; then
  42.     cat >&2 <<'END'
  43. Warning: something created compreg.dat!
  44. Your system was affected by this bug: https://launchpad.net/bugs/30791
  45. compreg.dat has now been removed again, which should fix the symptoms.
  46. END
  47.     rm $crd
  48. fi
  49.