PortValhalla/scripts/Debian/Software/Google Chrome/install.sh

16 lines
527 B
Bash
Raw Normal View History

2022-12-06 09:59:14 +00:00
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
2022-12-06 09:59:14 +00:00
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;
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' \
| sudo tee /etc/apt/sources.list.d/google-chrome.list;
2022-12-06 09:59:14 +00:00
apt update;
apt install -y google-chrome-stable;
2022-12-06 09:59:14 +00:00
fi