diff --git a/supplemental/scripts/install-agent.sh b/supplemental/scripts/install-agent.sh index 999143e2..0ab728ad 100755 --- a/supplemental/scripts/install-agent.sh +++ b/supplemental/scripts/install-agent.sh @@ -571,6 +571,11 @@ else echo "Adding beszel to docker group" usermod -aG docker beszel fi + # Add the user to the disk group to allow access to disk devices if group disk exists + if getent group disk; then + echo "Adding beszel to disk group" + usermod -aG disk beszel + fi fi # Create the directory for the Beszel Agent