Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 892896bda7dbfcb65bde1f5291347072 > scriptlet

mozilla-firefox-1.0.6-15mdk.x86_64.rpm

PREUN

/bin/sh
# is an upgrade
if [ "$1" == "1" ]; then
    unset DISPLAY
    /usr/lib64/mozilla-firefox-1.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.0.6/mozilla-rebuild-databases.pl
export MOZ_DISABLE_GNOME=1
export HOME="/root"
mozilla-firefox -- -nox -install-global-theme /usr/lib64/mozilla-firefox-1.0.6/chrome/kdestripe.jar
mozilla-firefox -- -nox -install-global-theme /usr/lib64/mozilla-firefox-1.0.6/chrome/gnomestripe.jar

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.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