prov/prov.sh

49 lines
592 B
Bash
Raw Normal View History

2021-06-10 23:21:09 +00:00
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
function main() {
RELEASE="$(lsb_release -cs)"
prov-$RELEASE
}
function prov-focal() {
PKGS="
2021-06-10 23:30:21 +00:00
bridge-utils
byobu
git
golang-go
magic-wormhole
make
net-tools
nmap
ntp
pbzip2
pv
traceroute
unzip
vim
vlan
wireguard-tools
zip
zsh
zstd
2021-06-10 23:21:09 +00:00
"
apt update && \
apt upgrade -y && \
apt install -y $PKGS && \
apt autoremove -y
2021-06-10 23:30:21 +00:00
install-age
}
function install-age () {
cd /tmp
git clone https://filippo.io/age && cd age
go build -o . filippo.io/age/cmd/...
mv ./age /usr/local/bin
cd -
rm -rf /tmp/age
2021-06-10 23:21:09 +00:00
}
2021-06-10 23:30:21 +00:00
main