15 lines
557 B
Bash
15 lines
557 B
Bash
#!/bin/bash
|
|
# Elevate script
|
|
if [ ! "$UID" -eq 0 ]
|
|
then
|
|
exec sudo bash "$0"
|
|
fi
|
|
|
|
# Prepare
|
|
apt install -y wget unzip jq apt-transport-https curl
|
|
curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
|
|
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | tee /etc/apt/sources.list.d/brave-browser-release.list
|
|
|
|
# Install Brave
|
|
apt update
|
|
apt install -y brave-browser
|