From 8d9e9260e6923f37eb5a7afa294e90d1f2a5f5f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Tosser?= Date: Thu, 15 Jan 2026 01:45:23 +0400 Subject: [PATCH] Change usermod to addgroup for docker access (#1641) On Alpine Linux, the correct command to add a user to an existing group is addgroup rather than usermod -aG. The usermod command is part of the shadow package which is not installed by default on Alpine. --- supplemental/scripts/install-agent.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supplemental/scripts/install-agent.sh b/supplemental/scripts/install-agent.sh index 598a26fd..15ee9fed 100755 --- a/supplemental/scripts/install-agent.sh +++ b/supplemental/scripts/install-agent.sh @@ -540,7 +540,7 @@ if is_alpine; then # Add the user to the docker group to allow access to the Docker socket if group docker exists if getent group docker; then echo "Adding beszel to docker group" - usermod -aG docker beszel + addgroup beszel docker fi elif is_openwrt; then