forked from FaxWeb7/main-telegram-autoclickers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
31 lines (25 loc) · 937 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Update package list and install prerequisites
echo "Updating package list and installing prerequisites..."
sudo apt update
sudo apt install -y software-properties-common
# Add Mozilla Team PPA
echo "Adding Mozilla Team PPA..."
sudo add-apt-repository -y ppa:mozillateam/ppa
# Set package pinning preferences
echo "Setting package pinning preferences..."
sudo tee /etc/apt/preferences.d/mozilla-firefox <<EOF
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
EOF
# Configure unattended upgrades for Mozilla Team PPA
echo "Configuring unattended upgrades for Mozilla Team PPA..."
sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox <<EOF
Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:\${distro_codename}";
EOF
# Update package list again and install Firefox
echo "Updating package list and installing Firefox..."
sudo apt update
sudo apt install -y firefox
echo "Installation complete!"