PREIN
/bin/sh
if [ $1 == 2 ]; then
if [ -d /usr/lib64/firefox-2.0.0.13/dictionaries ]; then
# Otherelse rpm can't switch this into a symlink :(
rm -rf /usr/lib64/firefox-2.0.0.13/dictionaries
fi
fi
PREUN
/bin/sh
# is an upgrade
if [ "$1" == "1" ]; then
unset DISPLAY
/usr/lib64/firefox-2.0.0.13/mozilla-rebuild-databases.pl
fi
POSTIN
/bin/sh
unset DISPLAY
/usr/lib64/firefox-2.0.0.13/mozilla-rebuild-databases.pl
if [ ! -r /etc/sysconfig/oem ]; then
case `grep META_CLASS /etc/sysconfig/system` in
*powerpack) bookmark="mozilla-powerpack.html" ;;
*desktop) bookmark="mozilla-one.html";;
*) bookmark="mozilla-download.html";;
esac
ln -s -f ../../../../share/mdk/bookmarks/mozilla/$bookmark /usr/lib64/firefox-2.0.0.13/defaults/profile/bookmarks.html
fi