diff --git a/provisioners/install-firefox.sh b/provisioners/install-firefox.sh new file mode 100755 index 0000000..38457cc --- /dev/null +++ b/provisioners/install-firefox.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# Reference:https://askubuntu.com/questions/1399383/how-to-install-firefox-as-a-traditional-deb-package-without-snap-in-ubuntu-22 +# Install firefox as a .deb + +add-apt-repository -y ppa:mozillateam/ppa + +echo ' +Package: * +Pin: release o=LP-PPA-mozillateam +Pin-Priority: 1001 + +Package: firefox +Pin: version 1:1snap1-0ubuntu2 +Pin-Priority: -1 +' | tee /etc/apt/preferences.d/mozilla-firefox + +snap remove firefox +apt install -y --allow-downgrades firefox + + +echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox +#TODO: Fix root certificate trust issues