HectorYX commited on
Commit
9b0a5ea
·
verified ·
1 Parent(s): 95532d3

Update on_startup.sh

Browse files
Files changed (1) hide show
  1. on_startup.sh +13 -3
on_startup.sh CHANGED
@@ -13,8 +13,8 @@ sudo apt-get install libfuse3-dev fuse3 && \
13
  sudo apt install borgbackup &>> ~/backup.log
14
 
15
  sudo useradd -m borg && \
16
- mkdir /home/borg/.ssh && \
17
- touch /home/borg/.ssh/authorized_keys && \
18
 
19
  sudo apt-get update
20
  curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
@@ -22,6 +22,16 @@ sudo install minikube-linux-amd64 /usr/local/bin/minikube && \
22
  rm minikube-linux-amd64 && \
23
  minikube start --cni=cilium &>> ~/clusters.log
24
 
 
 
 
 
 
 
 
 
 
 
25
  curl -fsSL https://tailscale.com/install.sh | sudo sh && \
26
  sudo systemctl start tailscaled && \
27
- sudo tailscale up -ssh &>> ~/tailscale.log
 
13
  sudo apt install borgbackup &>> ~/backup.log
14
 
15
  sudo useradd -m borg && \
16
+ sudo mkdir /home/borg/.ssh && \
17
+ sudo touch /home/borg/.ssh/authorized_keys && \
18
 
19
  sudo apt-get update
20
  curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
 
22
  rm minikube-linux-amd64 && \
23
  minikube start --cni=cilium &>> ~/clusters.log
24
 
25
+ CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/main/stable.txt)
26
+ CLI_ARCH=amd64
27
+ if [ "$(uname -m)" = "aarch64" ]; then CLI_ARCH=arm64; fi
28
+ curl -L --fail --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${CILIUM_CLI_VERSION}/cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
29
+ sha256sum --check cilium-linux-${CLI_ARCH}.tar.gz.sha256sum
30
+ sudo tar xzvfC cilium-linux-${CLI_ARCH}.tar.gz /usr/local/bin
31
+ rm cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
32
+ cilium install --version 1.16.1 &> ~/clusters.log
33
+ cilium status --wait &>> ~/clusters.log
34
+
35
  curl -fsSL https://tailscale.com/install.sh | sudo sh && \
36
  sudo systemctl start tailscaled && \
37
+ echo "sudo tailscale up -ssh &>> ~/tailscale.log"