mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
ensure /etc/machine-id exists for persistent fingerprint in install-agent.sh
This commit is contained in:
@@ -453,6 +453,11 @@ set_selinux_context
|
||||
# Cleanup
|
||||
rm -rf "$TEMP_DIR"
|
||||
|
||||
# Make sure /etc/machine-id exists for persistent fingerprint
|
||||
if [ ! -f /etc/machine-id ]; then
|
||||
cat /proc/sys/kernel/random/uuid | tr -d '-' > /etc/machine-id
|
||||
fi
|
||||
|
||||
# Check for NVIDIA GPUs and grant device permissions for systemd service
|
||||
detect_nvidia_devices() {
|
||||
local devices=""
|
||||
|
Reference in New Issue
Block a user