PREUN
/bin/sh
# is an upgrade
if [ "$1" == "1" ]; then
unset DISPLAY
/usr/lib64/mozilla-firefox-1.5.0.6/mozilla-rebuild-databases.pl
fi
POSTIN
/bin/sh
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
unset DISPLAY
/usr/lib64/mozilla-firefox-1.5.0.6/mozilla-rebuild-databases.pl
export MOZ_DISABLE_GNOME=1
export HOME="/root"
if [ "$1" = "2" ]; then
update-alternatives --remove webclient-gnome /usr/bin/mozffremote
update-alternatives --remove webclient-kde /usr/bin/mozffremote
fi
if [ ! -r /etc/sysconfig/oem ]; then
case `grep META_CLASS /etc/sysconfig/system` in
*powerpackplus) bookmark="mozilla-powerpackplus.html" ;;
*powerpack) bookmark="mozilla-powerpack.html" ;;
*) bookmark="mozilla-discovery-download.html";;
esac
ln -s -f $bookmark /usr/lib64/mozilla-firefox-1.5.0.6/defaults/profile/bookmarks.html
fi
POSTUN
/bin/sh
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi