HectorYX commited on
Commit
3d6ecf3
·
verified ·
1 Parent(s): db85bd9

Update on_startup.sh

Browse files
Files changed (1) hide show
  1. on_startup.sh +11 -12
on_startup.sh CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/bash
2
 
3
  touch ~/tailscale.log && touch ~/clusters.log && touch ~/backup.log
4
 
@@ -8,14 +8,14 @@ libssl-dev \
8
  liblz4-dev libzstd-dev libxxhash-dev \
9
  build-essential \
10
  pkg-config python3-pkgconfig && \
11
- sudo apt-get install -y libfuse-dev fuse && \ # needed for llfuse
12
- sudo apt-get install -y libfuse3-dev fuse3 && \ # needed for pyfuse3
13
-
14
  sudo apt install -y borgbackup &> ~/backup.log
 
15
  sudo useradd -m borg && \
16
- sudo -i -u borg && \
17
- mkdir .ssh && \
18
- touch .ssh/authorized_keys &>> ~/backup.log
19
 
20
  sudo apt-get update
21
  curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
@@ -23,9 +23,8 @@ sudo install -y minikube-linux-amd64 /usr/local/bin/minikube && \
23
  rm minikube-linux-amd64 && \
24
  minikube start &>> ~/clusters.log
25
 
26
- curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
27
- curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
28
-
29
- sudo apt-get install -y tailscale &> ~/tailscale.log
30
- sudo systemctl start tailscaled &>> ~/tailscale.log
31
  sudo tailscale up -ssh &>> ~/tailscale.log
 
1
+ #!/bin/bash
2
 
3
  touch ~/tailscale.log && touch ~/clusters.log && touch ~/backup.log
4
 
 
8
  liblz4-dev libzstd-dev libxxhash-dev \
9
  build-essential \
10
  pkg-config python3-pkgconfig && \
11
+ sudo apt-get install -y libfuse-dev fuse && \
12
+ sudo apt-get install -y libfuse3-dev fuse3 && \
 
13
  sudo apt install -y borgbackup &> ~/backup.log
14
+
15
  sudo useradd -m borg && \
16
+ mkdir /home/borg/.ssh && \
17
+ touch /home/borg/.ssh/authorized_keys && \
18
+ sudo chown brog:borg /home/borg/.ssh/authorized_keys &>> ~/backup.log
19
 
20
  sudo apt-get update
21
  curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
 
23
  rm minikube-linux-amd64 && \
24
  minikube start &>> ~/clusters.log
25
 
26
+ curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null && \
27
+ curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list && \
28
+ sudo apt-get install -y tailscale && \
29
+ sudo systemctl start tailscaled && \
 
30
  sudo tailscale up -ssh &>> ~/tailscale.log