Skip to content

Commit

Permalink
Firefox Rapid Release: switch to using focal/jammy ppa on bullseye/bo…
Browse files Browse the repository at this point in the history
…okworm

fixes issue when firefox tabs crash when using bionic build on newer distros (observed using bionic arm64 build on bookworm arm64)
  • Loading branch information
theofficialgman committed Sep 28, 2023
1 parent ed745b9 commit 616412c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
24 changes: 21 additions & 3 deletions apps/Firefox Rapid Release/install
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,27 @@ Pin-Priority: -1' | sudo tee /etc/apt/preferences.d/firefox >/dev/null
;;
*)
# Add repository source to apt sources.list
debian_ppa_installer "mozillateam/ppa" "bionic" "0AB215679C571D1C8325275B9BDB3D89CE49EC21" || exit 1
# allow unattented upgrades to upgrade from this ppa if unattented upgrades is enabled
echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:bionic";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox >/dev/null
# also allow unattented upgrades to upgrade from this ppa if unattented upgrades is enabled
case $__os_codename in
bookworm)
# remove old ppa if present
sudo rm -f /etc/apt/sources.list.d/mozillateam-ubuntu-ppa-bionic.list
debian_ppa_installer "mozillateam/ppa" "jammy" "0AB215679C571D1C8325275B9BDB3D89CE49EC21" || exit 1
echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:jammy";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox >/dev/null
;;
bullseye)
# remove old ppa if present
sudo rm -f /etc/apt/sources.list.d/mozillateam-ubuntu-ppa-bionic.list
debian_ppa_installer "mozillateam/ppa" "focal" "0AB215679C571D1C8325275B9BDB3D89CE49EC21" || exit 1
echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:focal";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox >/dev/null
;;
*)
debian_ppa_installer "mozillateam/ppa" "bionic" "0AB215679C571D1C8325275B9BDB3D89CE49EC21" || exit 1
echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:bionic";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox >/dev/null
;;
esac
install_packages firefox || exit 1
sudo apt --only-upgrade install firefox -y | less_apt
true
;;
esac
8 changes: 7 additions & 1 deletion apps/Firefox Rapid Release/uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ sudo rm -f /etc/apt/sources.list.d/firefox-ubuntu.list
ppa_name="mozillateam/ppa"
case "$__os_id" in
Ubuntu) ppa_dist="$__os_codename" ;;
*) ppa_dist="bionic" ;;
*)
case $__os_codename in
bookworm) ppa_dist="jammy" ;;
bullseye) ppa_dist="focal" ;;
*) ppa_dist="bionic" ;;
esac
;;
esac
remove_repofile_if_unused /etc/apt/sources.list.d/${ppa_name%/*}-ubuntu-${ppa_name#*/}-${ppa_dist}.list

0 comments on commit 616412c

Please sign in to comment.