Firefox Nightly
Updated instructions for installing Firefox Nightly
.
Dependencies
This method uses wget
, so let’s add that to the list of dependencies:
wget
Appendix
bash script
Here’s a bash script to automate installation:
WARNING: this script uses sudo
!
#! /usr/bin/env bash
GHL_STACKER_PKG="firefox-nightly"
GHL_STACKER_PAYLOAD_URI="https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64&lang=en-US"
GHL_STACKER_PAYLOAD_DEST=/var/opt/$GHL_STACKER_PKG
GHL_STACKER_PAYLOAD_BIN=$GHL_STACKER_PAYLOAD_DEST/firefox/firefox
GHL_STACKER_PAYLOAD_LN=/usr/local/bin/nightlyfox
GHL_STACKER_REPODIR=$KB3C_/REPO
GHL_STACKER_WGET=wget
GHL_STACKER_WGET_LOC=/usr/bin/wget
GHL_TIMESTAMP=`date +%s`
GHL_RET=0
GHL_STACKER_ERROR=""
printf "INSTALL $GHL_STACKER_PKG\n"
printf " == CHECK for repo folder at '$GHL_STACKER_REPODIR' ... ";
if [ -d $KB3C_/REPO ]; then
printf "[OK]\n";
printf " == CHECK for '$GHL_STACKER_WGET' at '$GHL_STACKER_WGET_LOC' ... ";
if [ -f $GHL_STACKER_WGET_LOC ]; then
printf "[OK]\n"
else
printf "[NOT FOUND]\n"
printf "\n"
printf "INSTALL DEPENDENCY '$GHL_STACKER_WGET'\n"
GHL_RET=`sudo apt install wget`
if [ GHL_RET -gt 0 ]; then
GHL_STACKER_ERROR="$GHL_STACKER_ERROR; unable to fetch dependency '$GHL_STACKER_WGET'"
fi
fi
if [ -z $GHL_STACKER_ERROR ]; then
#echo "$GHL_STACKER_WGET -O $GHL_STACKER_REPODIR/$GHL_STACKER_PKG.$GHL_TIMESTAMP.tar.gz --show-progress --compression=auto $GHL_STACKER_PAYLOAD_URI"
$GHL_STACKER_WGET -O $GHL_STACKER_REPODIR/$GHL_STACKER_PKG.$GHL_TIMESTAMP.tar.gz --show-progress --compression=auto $GHL_STACKER_PAYLOAD_URI
fi
if [ -z $GHL_STACKER_ERROR ]; then
sudo mkdir -v -p /var/opt/$GHL_STACKER_PKG
sudo tar -v -x --overwrite -f $GHL_STACKER_REPODIR/$GHL_STACKER_PKG.$GHL_TIMESTAMP.tar.gz -C $GHL_STACKER_PAYLOAD_DEST/
sudo ln -v -s -T $GHL_STACKER_PAYLOAD_BIN $GHL_STACKER_PAYLOAD_LN
fi
printf "\n"
if [ -z $GHL_STACKER_ERROR ]; then
printf "INSTALL COMPLETE\n"
else
printf "INSTALL ABORTED - ERROR(s):\n";
printf "$GHL_STACKER_ERROR\n";
fi
else
printf "[NOT FOUND]\n";
printf "\n";
printf "Unable to find repo folder!\nIs ghLive init?\n\n";
fi