-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from asajaroff/feature/firefox-nightly
Adding install script for Firefox nightly
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Firefox nightly installation script | ||
# | ||
# Variables | ||
INSTALL_DIR=/opt/firefox-nightly | ||
|
||
[ -d ${INSTALL_DIR} ] || mkdir ${INSTALL_DIR} | ||
|
||
if [ "$EUID" -ne 0 ] | ||
then echo "Please run as root" | ||
exit | ||
fi | ||
|
||
curl -L "https://download.mozilla.org/?product=firefox-nightly-latest-l10n-ssl&os=linux64&lang=en-US" -o ${INSTALL_DIR}/firefox-installer.tar.bz2 | ||
|
||
tar -xvf ${INSTALL_DIR}/firefox-installer.tar.bz2 -C ${INSTALL_DIR}/ | ||
|
||
cat << EOF > /usr/share/applications/firefox-nightly.desktop | ||
[Desktop Entry] | ||
Name=Firefox nightly | ||
GenericName=Nightly web browser | ||
Comment=Browse the web | ||
Exec=${INSTALL_DIR}/firefox/firefox-bin %u | ||
Icon=${INSTALL_DIR}/firefox/browser/chrome/icons/default/default128.png | ||
Type=Application | ||
Terminal=false | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters