Skip to content

This is a script for installing/updating Mozilla Firefox and Mozilla Thunderbird (and possibly others, but not tested) by a linux terminal (e.g. for automatic updates per cron).

License

Notifications You must be signed in to change notification settings

mflink3012/linux-mozilla-updaters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linux-mozilla-updaters

Description

This is a script for installing/updating Mozilla Firefox and Mozilla Thunderbird (and possibly others, but not tested) by a linux terminal (e.g. for automatic updates per cron).

Dependencies (used commandos and applications)

  • bash
  • curl
  • grep
  • wc
  • cut
  • sed
  • readlink
  • rm
  • wget
  • mv
  • mimetype
  • tar
  • unzip
  • gzip
  • bzip2
  • ln

Configuration

The configuration can be modified by editing the scripts header (block is marked inside).

Defaults are:

BRANCH=latest
OS=linux64
LANG=de
URL="https://download.mozilla.org/?product=${PRODUCT}-${BRANCH}&os=${OS}&lang=${LANG}"
TARGETDIR=/opt

Possible (known) values

BRANCH=latest|latest-ssl

OS=linux|linux64|osx

LANG=en|de

URL="https://download.mozilla.org/?product=${PRODUCT}-${BRANCH}&os=${OS}&lang=${LANG}"

TARGETDIR=/tmp (or what ever you want)

Note 1: $PRODUCT (or ${PRODUCT}) will be set by the first parameter send to the script and may be firefox, thunderbird, or others (not tested).

Note 2: Other values may be possible, but are not tested.

Usage

Just call the script update-mozilla without any parameter to print the help.

desktop-Files are for convenience and can be put to /usr/share/applications/ or ~/.local/share/applications/ to show up in menu (tested with XFCE4). They also can be edited to fit your needs (and configuration).

Tested with

  • Debian Linux 8 (Jessie)
  • Debian Linux 9 (Stretch)
  • Firefox 57 64bit de
  • Thunderbird 52 64bit de

Mechanics

This script downloads a header from the update-repository and tests it against a local header-file (last header downloaded). If the local header-file does not exist or contains a different timestamp for the update-file, it will be downloaded and extracted (gzip, bzip2 or zip) to the target-directory. Otherwise the script quits with no change.

License

GPL 3.0 (See the LICENSE-file shipped or https://www.gnu.org/licenses/gpl-3.0.txt for details.)

About

This is a script for installing/updating Mozilla Firefox and Mozilla Thunderbird (and possibly others, but not tested) by a linux terminal (e.g. for automatic updates per cron).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages