2022-11-12 03:08:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Elevate script
|
|
|
|
if [ ! "$UID" -eq 0 ]
|
|
|
|
then
|
2023-01-23 14:55:10 +00:00
|
|
|
sudo bash "$BASH_SOURCE";
|
2022-11-13 00:11:32 +00:00
|
|
|
else
|
|
|
|
# Prepare
|
2023-01-23 14:55:10 +00:00
|
|
|
apt install -y wget unzip jq apt-transport-https curl;
|
|
|
|
curl -fsSLo /usr/share/keyrings/brave-browser-beta-archive-keyring.gpg https://brave-browser-apt-beta.s3.brave.com/brave-browser-beta-archive-keyring.gpg;
|
2022-11-13 00:15:45 +00:00
|
|
|
echo "deb [signed-by=/usr/share/keyrings/brave-browser-beta-archive-keyring.gpg arch=amd64] https://brave-browser-apt-beta.s3.brave.com/ stable main" \
|
2023-01-23 14:55:10 +00:00
|
|
|
| sudo tee /etc/apt/sources.list.d/brave-browser-beta.list;
|
2022-11-12 03:08:11 +00:00
|
|
|
|
2022-11-13 00:11:32 +00:00
|
|
|
# Install Brave Beta
|
2023-01-23 14:55:10 +00:00
|
|
|
apt update;
|
|
|
|
apt install -y brave-browser-beta;
|
2022-11-12 03:11:02 +00:00
|
|
|
|
2022-11-13 00:11:32 +00:00
|
|
|
# Add pre-installed extensions
|
2023-01-23 14:55:10 +00:00
|
|
|
sudo ln -s /opt/brave.com/brave/extensions /opt/brave.com/brave-beta/extensions;
|
2022-11-13 00:11:32 +00:00
|
|
|
fi
|