mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-21 17:07:47 +02:00
fix(install): add beszel to operator group on FreeBSD for SMART device access (#2286)
On FreeBSD the beszel agent needs to be a member of the operator group to access SMART-capable devices via smartctl (e.g. /dev/nvme*, /dev/xpt0*). The wheel group alone does not grant that access, so the install script now adds the beszel user to operator when that group exists, mirroring the Linux disk-group handling. Fixes #1431 Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -812,6 +812,11 @@ elif is_freebsd; then
|
|||||||
echo "Adding beszel to wheel group for self-updates"
|
echo "Adding beszel to wheel group for self-updates"
|
||||||
pw group mod wheel -m beszel
|
pw group mod wheel -m beszel
|
||||||
fi
|
fi
|
||||||
|
# Add the user to the operator group for device access (SMART, /dev/xpt0, /dev/nvme*)
|
||||||
|
if pw group show operator >/dev/null 2>&1; then
|
||||||
|
echo "Adding beszel to operator group for device access"
|
||||||
|
pw group mod operator -m beszel
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user