Add script for installing tea
This commit is contained in:
parent
bc753c70a6
commit
5e3284ea58
2 changed files with 27 additions and 8 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
dir="${BASH_SOURCE%/*}"
|
||||
popOSRoot="$dir/../scripts/PopOS"
|
||||
softwareRoot="$popOSRoot/software"
|
||||
|
||||
# Set Hostname
|
||||
sudo hostnamectl set-hostname ManuSurface
|
||||
|
@ -9,18 +11,19 @@ sudo apt update
|
|||
sudo apt upgrade
|
||||
|
||||
# Install surface-linux and Secure Boot
|
||||
source "$dir/../scripts/PopOS/linux-surface.sh"
|
||||
source "$dir/../scripts/PopOS/secure-boot.sh"
|
||||
source "$popOSRoot/linux-surface.sh"
|
||||
source "$popOSRoot/secure-boot.sh"
|
||||
|
||||
# Install Brave
|
||||
source "$dir/../scripts/PopOS/softwate/brave.sh"
|
||||
source "$dir/../scripts/PopOS/software/brave-extensions.sh"
|
||||
source "$dir/../scripts/PopOS/softwate/brave-beta.sh"
|
||||
source "$dir/../scripts/PopOS/softwate/brave-nightly.sh"
|
||||
source "$softwareRoot/brave.sh"
|
||||
source "$softwareRoot/brave-extensions.sh"
|
||||
source "$softwareRoot/brave-beta.sh"
|
||||
source "$softwareRoot/brave-nightly.sh"
|
||||
|
||||
# Install further software
|
||||
source "$dir/../scripts/PopOS/softwate/codium.sh"
|
||||
source "$dir/../scripts/PopOS/softwate/code.sh"
|
||||
source "$softwareRoot/codium.sh"
|
||||
source "$softwareRoot/code.sh"
|
||||
source "$softwareRoot/tea.sh"
|
||||
|
||||
# Install other flatpaks
|
||||
flatpak install flathub com.bitwarden.desktop
|
||||
|
|
16
scripts/PopOS/software/tea.sh
Normal file
16
scripts/PopOS/software/tea.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
# Elevate script
|
||||
if [ ! "$UID" -eq 0 ]
|
||||
then
|
||||
exec sudo bash "$0"
|
||||
fi
|
||||
|
||||
workingDirectory=$(pwd)
|
||||
contextRoot=$(mktemp)
|
||||
cd $contextRoot
|
||||
|
||||
wget https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 -O tea
|
||||
install tea /usr/local/bin
|
||||
|
||||
cd $workingDirectory
|
||||
rm -rf $contextRoot
|
Loading…
Reference in a new issue