PREUN
/bin/sh
# is an upgrade
if [ "$1" == "1" ]; then
unset DISPLAY
/usr/lib64/mozilla-firefox-1.5.0.7/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.7/mozilla-rebuild-databases.pl
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/lib64/mozilla-firefox-1.5.0.7/defaults/profile/bookmarks.html
fi
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-desktop-database /usr/share/applications > /dev/null
fi
if [ "$1" = "2" ]; then
update-alternatives --remove webclient-gnome /usr/bin/mozffremote
update-alternatives --remove webclient-kde /usr/bin/mozffremote
fi
POSTUN
/bin/sh
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-desktop-database /usr/share/applications > /dev/null
fi