FirefoxUpdater (v0.2)

Summary: Want an easy way to update Firefox to the latest (nightly) build? Want it to automatically update itself? Set this script as a cron job to run nightly, and all that will be taken care of. This can also be used as a way of pushing out Firefox to other computers.

Requirements:

  • Firefox
  • wget

Code:

#!/bin/bash
MARDIRURL="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk"
MARFILENAME="firefox-3.0b3pre.en-US.linux-i686.complete.mar"

cd /tmp
wget "${MARDIRURL}/${MARFILENAME}"
mv "${MARFILENAME}" "/usr/lib/firefox-updater/update.mar"
cd "/usr/lib/firefox/"
../firefox-updater/updater ../firefox-updater 0
rm "/usr/lib/firefox-updater/update.mar"

Leave a Reply

Your email address will not be published. Required fields are marked *