aboutsummaryrefslogtreecommitdiff
path: root/share/trashman/brave-browser/unix/linux/debian/install
blob: bfc527cb7759b5113ec08d3aabd00a6512e3476a (plain)
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
#!/bin/bash
#
# Trashman installer for debian systems.
#

# Parameters
SHARE="$1"
LIB="$2"
REQUIREMENTS="curl apt-transport-https"

# Include basic functions
. $LIB/trashman/functions || exit 1
. $LIB/trashman/debian    || exit 1

# Requirements
trashman_apt_install $REQUIREMENTS

# Install pubkey
#curl -fsSLo /etc/apt/trusted.gpg.d/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
trashman_install_apt_key $SHARE/brave-browser/unix/linux/$DISTRO/pubkey.gpg brave-browser-archive-keyring.gpg

# Create sources.list entry
echo "deb [signed-by=/etc/apt/trusted.gpg.d/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | \
  tee /etc/apt/sources.list.d/brave-browser-release.list

# Update and install
trashman_apt_install brave-browser || exit 1