-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript_netbird.sh
More file actions
32 lines (29 loc) · 858 Bytes
/
script_netbird.sh
File metadata and controls
32 lines (29 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# ---- Available Options ----
install_netbird(){
logk "i" "Installing netbird"
curl -fsSL https://pkgs.netbird.io/install.sh | sh
netbird up
logk "i" "Netbird installed"
sudo systemctl enable --now netbird
sudo systemctl status netbird
}
install_netbird_with_ssh(){
logk "i" "Installing netbird with ssh"
curl -fsSL https://pkgs.netbird.io/install.sh | sh
netbird up --allow-server-ssh
logk "i" "Netbird installed"
sudo systemctl enable --now netbird
sudo systemctl status netbird
}
script_netbird(){
logk "i" "Select the option for netbird"
loge "1. Install netbird"
loge "2. Install netbird with ssh"
read -p "Enter your choice: " choice
case $choice in
1) install_netbird ;;
2) install_netbird_with_ssh ;;
*) logk "e" "Invalid choice" ;;
esac
}