xeruf 2023-12-22 17:47:00 +03:00
parent 2c80c73149
commit ee5203a03d
6 changed files with 24 additions and 5 deletions

View File

@ -68,7 +68,7 @@ The classic way I get this onto a Linux server:
cd /opt cd /opt
sudo chown --from=:root :sudo . && sudo chmod g+w . sudo chown --from=:root :sudo . && sudo chmod g+w .
sudo apt install git sudo apt install git
git clone https://github.com/xeruf/instalee git clone https://github.com/xeruf/instalee || git -C instalee pull
instalee/instalee shell/basics instalee/instalee shell/basics
``` ```

View File

@ -1,5 +1,4 @@
kubectl kubectl
helm helm
k9s k9s
fluxctl
kubectx kubectx

3
groups/shell/stackspin Normal file
View File

@ -0,0 +1,3 @@
shell/kubernetes
fluxctl
velero

View File

@ -6,9 +6,14 @@ case "$1" in
(http*) wget --no-verbose -O "$loc" "$@";; (http*) wget --no-verbose -O "$loc" "$@";;
(*.deb) loc="$1";; (*.deb) loc="$1";;
(git*) domain="$1"; shift (git*) domain="$1"; shift
result=$(curl -s "https://api.$domain/repos/$1/$2/releases/latest" | grep -o "http.*${3:-deb}" | awk '{ print length(), $0}' | sort -n | cut -d' ' -f2-) arch=$(uname -m)
"$0" $(echo "$result" | command grep amd64 | head -1 || echo "$result") case "$arch" in
exit $?;; (x86_64) arch=amd64;;
(aarch64) arch=arm64;;
esac
result=$(curl -s "https://api.$domain/repos/$1/$2/releases/latest" | grep -o "http.*${3:-deb}" | awk '{ print length(), $0}' | sort -n | cut -d' ' -f2-)
"$0" $(echo "$result" | grep $arch | head -1 || echo "$result")
exit $?;;
esac esac
sudo dpkg -i "$loc" sudo dpkg -i "$loc"
sudo apt-get -f install sudo apt-get -f install

1
packages/velero/aur Normal file
View File

@ -0,0 +1 @@
velero-bin

11
packages/velero/binary Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
arch=$(uname -m)
case "$arch" in
(x86_64) arch=amd64;;
(aarch64) arch=arm64;;
esac
result=$(curl https://api.github.com/repos/vmware-tanzu/velero/releases/latest | grep -o "http.*.tar.gz" | awk '{ print length(), $0}' | sort -n | cut -d' ' -f2- | grep linux-$arch | head -1)
wget "$result"
tar -xvf $(basename "$result")
echo $(basename "$result")/velero