mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2024-11-26 10:03:08 +01:00
install firefox on bookworm from official repos
This commit is contained in:
parent
b328375581
commit
7a301305d0
@ -41,20 +41,16 @@ elif grep -q "ID=debian" /etc/os-release || grep -q "ID=kali" /etc/os-release ||
|
|||||||
$HOME/Desktop/
|
$HOME/Desktop/
|
||||||
chmod +x $HOME/Desktop/firefox-esr.desktop
|
chmod +x $HOME/Desktop/firefox-esr.desktop
|
||||||
else
|
else
|
||||||
echo \
|
install -d -m 0755 /etc/apt/keyrings
|
||||||
"deb http://deb.debian.org/debian/ unstable main contrib non-free" >> \
|
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- > /etc/apt/keyrings/packages.mozilla.org.asc
|
||||||
/etc/apt/sources.list
|
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" > /etc/apt/sources.list.d/mozilla.list
|
||||||
cat > /etc/apt/preferences.d/99pin-unstable <<EOF
|
echo '
|
||||||
Package: *
|
Package: *
|
||||||
Pin: release a=stable
|
Pin: origin packages.mozilla.org
|
||||||
Pin-Priority: 900
|
Pin-Priority: 1000
|
||||||
|
' > /etc/apt/preferences.d/mozilla
|
||||||
Package: *
|
|
||||||
Pin: release a=unstable
|
|
||||||
Pin-Priority: 10
|
|
||||||
EOF
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -o Dpkg::Options::="--force-confnew" -y -t unstable firefox p11-kit-modules
|
apt-get install -y firefox p11-kit-modules
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
apt-mark unhold firefox || :
|
apt-mark unhold firefox || :
|
||||||
@ -133,6 +129,8 @@ elif [ "${DISTRO}" == "opensuse" ]; then
|
|||||||
preferences_file=/usr/lib64/firefox/browser/defaults/preferences/firefox.js
|
preferences_file=/usr/lib64/firefox/browser/defaults/preferences/firefox.js
|
||||||
elif grep -q "bullseye" /etc/os-release; then
|
elif grep -q "bullseye" /etc/os-release; then
|
||||||
preferences_file=/usr/lib/firefox-esr/browser/defaults/preferences/firefox.js
|
preferences_file=/usr/lib/firefox-esr/browser/defaults/preferences/firefox.js
|
||||||
|
elif grep -q "bookworm" /etc/os-release; then
|
||||||
|
preferences_file=/usr/lib/firefox/defaults/pref/firefox.js
|
||||||
else
|
else
|
||||||
preferences_file=/usr/lib/firefox/browser/defaults/preferences/firefox.js
|
preferences_file=/usr/lib/firefox/browser/defaults/preferences/firefox.js
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user