mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-16 02:06:17 +01:00
agent install: improve freebsd checksum verification (#1526)
This commit is contained in:
@@ -504,10 +504,11 @@ KEY=$(echo "$KEY" | tr -d '\n')
|
|||||||
# Verify checksum
|
# Verify checksum
|
||||||
if command -v sha256sum >/dev/null; then
|
if command -v sha256sum >/dev/null; then
|
||||||
CHECK_CMD="sha256sum"
|
CHECK_CMD="sha256sum"
|
||||||
elif command -v md5 >/dev/null; then
|
elif command -v sha256 >/dev/null; then
|
||||||
CHECK_CMD="md5 -q"
|
# FreeBSD uses 'sha256' instead of 'sha256sum', with different output format
|
||||||
|
CHECK_CMD="sha256 -q"
|
||||||
else
|
else
|
||||||
echo "No MD5 checksum utility found"
|
echo "No SHA256 checksum utility found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user