Install chrome

This commit is contained in:
Manuel Thalmann 2022-12-06 10:59:14 +01:00
parent d296ed3be3
commit ff96e653a8
2 changed files with 16 additions and 0 deletions

View file

@ -36,6 +36,7 @@ source "$softwareRoot/brave.sh"
source "$softwareRoot/brave-extensions.sh"
source "$softwareRoot/brave-beta.sh"
source "$softwareRoot/brave-nightly.sh"
source "$softwareRoot/chrome.sh"
# Install further software
source "$softwareRoot/logo-ls.sh"

View file

@ -0,0 +1,15 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE"
else
wget https://dl-ssl.google.com/linux/linux_signing_key.pub -O /tmp/google.pub
gpg --no-default-keyring --keyring /etc/apt/keyrings/google-chrome.gpg --import /tmp/google.pub
echo 'deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main' \
| sudo tee /etc/apt/sources.list.d/google-chrome.list
apt update
apt install -y google-chrome-stable
fi