Add Firefox Rapid Release app to close #835
parent
2611221f8e
commit
52dbfaa7ec
@ -0,0 +1,3 @@
|
||||
Scripts made by chunky-milk
|
||||
Added to Pi-Apps by Tejas Singh YT
|
||||
Original Web-Browser made by Mozilla Foundation.
|
@ -0,0 +1,2 @@
|
||||
Latest stable Mozilla Firefox version available. (Downloaded from Ubuntu Repo)
|
||||
Mozilla Firefox, is a free and open-source web browser developed by the Mozilla Foundation.
|
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||
|
||||
function error {
|
||||
echo -e "\\e[91m$1\\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Add repository source to apt sources.list
|
||||
echo "Adding ubuntu repository..."
|
||||
echo "deb http://ports.ubuntu.com/ubuntu-ports bionic-updates main" | sudo tee /etc/apt/sources.list.d/firefox-ubuntu.list || error "Failed to add repository to sources.list!"
|
||||
|
||||
# Add ubuntu keyring
|
||||
echo "Signing ubuntu repository...""
|
||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 || (sudo rm -f /etc/apt/sources.list.d/firefox-ubuntu.list ; error "Failed to add key")
|
||||
|
||||
# Add preferences so the ubuntu repositories don't become your "default" repositories
|
||||
echo "Preventing Ubuntu repository from causing apt problems..."
|
||||
sudo wget -O /etc/apt/preferences.d/99bionic-updates https://raw.githubusercontent.com/chunky-milk/pi-bashscripts-files/main/Files/99bionic-updates || (sudo rm -f /etc/apt/sources.list.d/firefox-ubuntu.list ; error "wget failed to download 99bionic-updates file!")
|
||||
|
||||
sudo apt update || error "Failed to run 'sudo apt update'!"
|
||||
sudo apt install -t bionic-updates firefox -y || error "Failed to install firefox!"
|
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||
|
||||
function error {
|
||||
echo -e "\\e[91m$1\\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
sudo apt purge firefox -y || error "Failed to uninstall firefox!"
|
||||
sudo rm /etc/apt/preferences.d/99bionic-updates || error "Failed to delete /etc/apt/preferences.d/99bionic-updates"
|
||||
sudo rm /etc/apt/sources.list.d/firefox-ubuntu.list || error "Failed to delete the repository!"
|
||||
sudo apt-key del "3B4FE6ACC0B21F32" || error "Failed to delete the key!"
|
||||
|
Loading…
Reference in New Issue