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 / mozilla-thunderbird.postinst < prev    next >
Encoding:
Text File  |  2007-04-03  |  1.5 KB  |  50 lines

  1. #!/bin/sh
  2.  
  3. . /usr/share/debconf/confmodule
  4.  
  5. if [ "$1" = "configure" ] ; then
  6.  
  7.     db_get thunderbird/browser || true
  8.  
  9.     if test "$RET" = "Debian"; then
  10.       W_BROWSER=x-www-browser
  11.       cat > /etc/mozilla-thunderbird/auto-config.js << EOF
  12. //####################################################//
  13. // AUTO generated config file. Don't touch this       //
  14. // use: dpkg-reconfigure mozilla-thunderbird          //
  15. //####################################################//
  16.  
  17. pref("network.protocol-handler.app.http","$W_BROWSER");
  18. pref("network.protocol-handler.app.https","$W_BROWSER");
  19.  
  20. EOF
  21.     else
  22.        cat > /etc/mozilla-thunderbird/auto-config.js << EOF
  23. //####################################################//
  24. // AUTO generated config file. Don't touch this       //
  25. // use: dpkg-reconfigure mozilla-thunderbird          //
  26. //####################################################//
  27. EOF
  28.     fi
  29.  
  30. #    update-mozilla-thunderbird-chrome
  31.     if [ -x /usr/bin/update-menus ]; then update-menus; fi
  32. fi
  33.  
  34. echo "Please restart any running Thunderbirds, or you will experience problems."
  35.  
  36. unud=/var/lib/update-notifier/user.d
  37.  
  38. if pgrep mozilla-thunderbird-bin >/dev/null 2>&1 && test -d $unud; then
  39.     cp -f /usr/share/mozilla-thunderbird/thunderbird-restart-required.update-notifier \
  40.         "$unud/thunderbird-restart-required"
  41. fi
  42.  
  43. # Automatically added by dh_installmenu
  44. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  45.     update-menus
  46. fi
  47. # End automatically added section
  48.  
  49.  
  50.