Updated and replaced nightly with offical firefox (nightly still in repository if need)
This commit is contained in:
parent
0005a9eb5b
commit
253ac1d4b1
@ -6,7 +6,7 @@ APT_INST="apt -y install"
|
|||||||
APT_PURGE="apt -y purge"
|
APT_PURGE="apt -y purge"
|
||||||
APT_REMOVE="apt -y autoremove"
|
APT_REMOVE="apt -y autoremove"
|
||||||
|
|
||||||
PKG_FIREFOX="firefox-nightly"
|
PKG_FIREFOX="firefox"
|
||||||
|
|
||||||
#### Functions
|
#### Functions
|
||||||
check_root() {
|
check_root() {
|
||||||
@ -41,14 +41,13 @@ echo -e "\nUpdate apt"
|
|||||||
echo "$APT_UPDATE"
|
echo "$APT_UPDATE"
|
||||||
$APT_UPDATE
|
$APT_UPDATE
|
||||||
|
|
||||||
echo -ne "\nYou want to install Firefox Nightly ($PKG_FIREFOX)? "
|
echo -ne "\nYou want to install Firefox ($PKG_FIREFOX)? "
|
||||||
|
|
||||||
if choice 2>/dev/null; then
|
if choice 2>/dev/null; then
|
||||||
echo -ne "\nAdd repository for Firefox Nightly\n"
|
echo -ne "\nAdd repository for Firefox\n"
|
||||||
$APT_INST apt-transport-https wget
|
$APT_INST apt-transport-https wget
|
||||||
sudo install -d -m 0755 /etc/apt/keyrings
|
sudo install -d -m 0755 /etc/apt/keyrings
|
||||||
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
|
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
|
||||||
gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); print "\n"$0"\n"}'
|
|
||||||
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
|
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
|
||||||
$APT_UPDATE
|
$APT_UPDATE
|
||||||
echo -ne "\n$APT_INST $PKG_FIREFOX\n"
|
echo -ne "\n$APT_INST $PKG_FIREFOX\n"
|
Loading…
x
Reference in New Issue
Block a user