home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- . /usr/share/debconf/confmodule
-
- if [ "$1" = "configure" ] ; then
-
- db_get thunderbird/browser || true
-
- if test "$RET" = "Debian"; then
- W_BROWSER=x-www-browser
- cat > /etc/mozilla-thunderbird/auto-config.js << EOF
- //####################################################//
- // AUTO generated config file. Don't touch this //
- // use: dpkg-reconfigure mozilla-thunderbird //
- //####################################################//
-
- pref("network.protocol-handler.app.http","$W_BROWSER");
- pref("network.protocol-handler.app.https","$W_BROWSER");
-
- EOF
- else
- cat > /etc/mozilla-thunderbird/auto-config.js << EOF
- //####################################################//
- // AUTO generated config file. Don't touch this //
- // use: dpkg-reconfigure mozilla-thunderbird //
- //####################################################//
- EOF
- fi
-
- # update-mozilla-thunderbird-chrome
- if [ -x /usr/bin/update-menus ]; then update-menus; fi
- fi
-
- echo "Please restart any running Thunderbirds, or you will experience problems."
-
- unud=/var/lib/update-notifier/user.d
-
- if pgrep mozilla-thunderbird-bin >/dev/null 2>&1 && test -d $unud; then
- cp -f /usr/share/mozilla-thunderbird/thunderbird-restart-required.update-notifier \
- "$unud/thunderbird-restart-required"
- fi
-
- # Automatically added by dh_installmenu
- if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
- update-menus
- fi
- # End automatically added section
-
-
-