mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 18:56:17 +01:00
install-agent.sh: add 'beszel' user to disk group for device access
This commit is contained in:
@@ -571,6 +571,11 @@ else
|
|||||||
echo "Adding beszel to docker group"
|
echo "Adding beszel to docker group"
|
||||||
usermod -aG docker beszel
|
usermod -aG docker beszel
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
# Create the directory for the Beszel Agent
|
# Create the directory for the Beszel Agent
|
||||||
|
|||||||
Reference in New Issue
Block a user