FirefoxUpdater (v0.2)

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

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"

0 Responses to “FirefoxUpdater (v0.2)”


  1. No Comments

Leave a Reply





User Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Character Encoding: UTF-8
Generated: 09/07/2010 22:50:35 UTC
Rendering Time: 1.136 seconds.