17 lines
383 B
Bash
Executable File
17 lines
383 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Update the NetBird client (apt package) on this host.
|
|
# Warning: restarting the client drops sessions that go over NetBird.
|
|
set -euo pipefail
|
|
|
|
echo "Current: $(netbird version)"
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y --only-upgrade netbird
|
|
|
|
sudo systemctl restart netbird
|
|
sleep 3
|
|
|
|
echo "Now: $(netbird version)"
|
|
systemctl is-active netbird
|
|
netbird status
|