2022-12-06 09:59:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Elevate script
|
|
|
|
if [ ! "$UID" -eq 0 ]
|
|
|
|
then
|
2023-01-23 14:55:10 +00:00
|
|
|
sudo bash "$BASH_SOURCE";
|
2022-12-06 09:59:14 +00:00
|
|
|
else
|
2023-01-23 14:55:10 +00:00
|
|
|
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;
|
2022-12-06 09:59:14 +00:00
|
|
|
|
|
|
|
echo 'deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main' \
|
2023-01-23 14:55:10 +00:00
|
|
|
| sudo tee /etc/apt/sources.list.d/google-chrome.list;
|
2022-12-06 09:59:14 +00:00
|
|
|
|
2023-01-23 14:55:10 +00:00
|
|
|
apt update;
|
|
|
|
apt install -y google-chrome-stable;
|
2022-12-06 09:59:14 +00:00
|
|
|
fi
|