From 9a7266a65b50a4c837e882f579e18a678cc9f7a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Zaroda?= Date: Tue, 13 Aug 2024 18:28:43 +0200 Subject: [PATCH] Fixed an issue with a non-posix command. --- bin/templates/draky.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/templates/draky.template b/bin/templates/draky.template index 99de13c..0708d62 100644 --- a/bin/templates/draky.template +++ b/bin/templates/draky.template @@ -5,10 +5,11 @@ IMAGE_NAME=$TEMPLATE_DRAKY_NAME DRAKY_VERSION=$TEMPLATE_DRAKY_VERSION PROJECT_CONFIG_DIR=.draky CORE_GLOBAL_CONFIG_PATH=/global-config +DOCKER_SOCKET=/var/run/docker.sock DRAKY_HOST_UID="${UID}" DRAKY_HOST_GID="$(id -g)" -DRAKY_GID="$(stat -c '%g' /var/run/docker.sock)" +DRAKY_GID="$(getent group "$(ls -ld $DOCKER_SOCKET | awk '{print $4}')" | cut -d: -f3)" COLOR_RESET='\033[0m' #COLOR_BLUE='\033[0;94m'