add go, age, sort pkgs

This commit is contained in:
Jeffrey Paul 2021-06-10 16:30:21 -07:00
parent ccc82d8887
commit b5ac536cf5
1 changed files with 30 additions and 23 deletions

53
prov.sh
View File

@ -4,38 +4,45 @@ export DEBIAN_FRONTEND=noninteractive
function main() { function main() {
RELEASE="$(lsb_release -cs)" RELEASE="$(lsb_release -cs)"
prov-$RELEASE prov-$RELEASE
} }
function prov-focal() { function prov-focal() {
PKGS=" PKGS="
bridge-utils bridge-utils
byobu byobu
git git
make golang-go
net-tools magic-wormhole
nmap make
magic-wormhole net-tools
ntp nmap
traceroute ntp
vim pbzip2
vlan pv
wireguard-tools traceroute
zip unzip
unzip vim
zstd vlan
pbzip2 wireguard-tools
pv zip
zsh zsh
zstd
" "
apt update && \ apt update && \
apt upgrade -y && \ apt upgrade -y && \
apt install -y $PKGS && \ apt install -y $PKGS && \
apt autoremove -y apt autoremove -y
install-age
} }
main 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
}
main