install-agent.sh: add 'beszel' user to disk group for device access

This commit is contained in:
henrygd
2025-10-25 11:56:26 -04:00
parent 962613df7c
commit 5927f45a4a

View File

@@ -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