PREUN
/bin/sh
if [ "$1" = "0" ]; then
/bin/rm -rf /usr/lib/mozilla-1.7.6/chrome/overlayinfo
/bin/rm -f /usr/lib/mozilla-1.7.6/chrome/*.rdf
fi
POSTIN
/bin/sh
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
ulimit -c 0
# run ldconfig before regxpcom
/sbin/ldconfig >/dev/null 2>/dev/null
# we should only rebuild database for first install
# rebuild for update is done in postun
# but it seems we need we might need to do it twince
if [ -x /usr/lib/mozilla-1.7.6/mozilla-rebuild-databases.pl ]; then
/usr/lib/mozilla-1.7.6/mozilla-rebuild-databases.pl
fi
if [ "$1" = "2" ]; then
update-alternatives --remove webclient-gnome /usr/bin/mozilla
update-alternatives --remove webclient-kde /usr/bin/mozilla
fi
# Default to paper size from locale setting
case `LC_ALL=$LC_MESSAGES /usr/bin/locale -k LC_PAPER | grep width` in
*216) paper="letter";;
*) paper="a4";;
esac
perl -pi -e "s/^(pref\(\"print.postscript.paper_size\",[^\"]+)\"[a-z0-9]+\"/\1\"$paper\"/" \
/usr/lib/mozilla-1.7.6/greprefs/all.js
if [ ! -r /etc/sysconfig/oem ]; then
case `grep META_CLASS /etc/sysconfig/system` in
*server) bookmark="mozilla-powerpackplus.html" ;;
*PowerPack) bookmark="mozilla-powerpack.html" ;;
*) bookmark="mozilla-discovery-download.html";;
esac
ln -s -f $bookmark /usr/lib/mozilla-1.7.6/defaults/profile/US/bookmarks.html
fi
POSTUN
/bin/sh
## menu
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
# was this an upgrade?
if [ "$1" == "2" -a -x /usr/lib/mozilla-1.7.6/mozilla-rebuild-databases.pl ]; then
/usr/lib/mozilla-1.7.6/mozilla-rebuild-databases.pl
fi