mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-30 22:26:42 +00:00
fix(client): check sha256sum dependency and validate deps on update
This commit is contained in:
@@ -71,7 +71,7 @@ check_arch() {
|
||||
|
||||
check_dependencies() {
|
||||
local missing=""
|
||||
for cmd in curl tar systemctl sudo; do
|
||||
for cmd in curl tar systemctl sudo sha256sum; do
|
||||
if ! command -v "$cmd" >/dev/null 2>&1; then
|
||||
missing="$missing $cmd"
|
||||
fi
|
||||
@@ -334,6 +334,7 @@ do_update() {
|
||||
info "Updating ${installed_version} -> ${latest_version}"
|
||||
|
||||
check_arch
|
||||
check_dependencies
|
||||
|
||||
# Download and verify new binary to a staging directory before touching the running service
|
||||
local staging_dir
|
||||
|
||||
Reference in New Issue
Block a user