mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 02:09:28 +08:00
update install-agent.sh to add beszel user to docker group
This commit is contained in:
@@ -78,6 +78,8 @@ else
|
|||||||
echo "Creating a dedicated user for the Beszel Agent service..."
|
echo "Creating a dedicated user for the Beszel Agent service..."
|
||||||
sudo useradd -M -s /bin/false beszel
|
sudo useradd -M -s /bin/false beszel
|
||||||
fi
|
fi
|
||||||
|
# Add the user to the docker group to allow access to the Docker socket
|
||||||
|
sudo usermod -aG docker beszel
|
||||||
|
|
||||||
# Create the directory for the Beszel Agent
|
# Create the directory for the Beszel Agent
|
||||||
if [ ! -d "/opt/beszel-agent" ]; then
|
if [ ! -d "/opt/beszel-agent" ]; then
|
||||||
|
Reference in New Issue
Block a user