From dd4555d77a23050a8f10e2f6f0505013beb18376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Zaroda?= Date: Tue, 20 Aug 2024 13:44:29 +0200 Subject: [PATCH] Improved compatibility. --- bin/templates/draky.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/templates/draky.template b/bin/templates/draky.template index 0708d62..cd6d260 100644 --- a/bin/templates/draky.template +++ b/bin/templates/draky.template @@ -9,7 +9,7 @@ DOCKER_SOCKET=/var/run/docker.sock DRAKY_HOST_UID="${UID}" DRAKY_HOST_GID="$(id -g)" -DRAKY_GID="$(getent group "$(ls -ld $DOCKER_SOCKET | awk '{print $4}')" | cut -d: -f3)" +DRAKY_GID="$(grep -e "^$(ls -ld $DOCKER_SOCKET | awk '{print $4}')" < /etc/group | cut -d: -f3)" COLOR_RESET='\033[0m' #COLOR_BLUE='\033[0;94m' @@ -45,7 +45,7 @@ start_core() { local ARGS=( --name "$CONTAINER_NAME" --group-add="$DRAKY_GID" - -v /var/run/docker.sock:/var/run/docker.sock + -v "$DOCKER_SOCKET:/var/run/docker.sock" -v "$HOST_GLOBAL_CONFIG_PATH:$CORE_GLOBAL_CONFIG_PATH" -e "DRAKY_VERSION=$DRAKY_VERSION" -e "DRAKY_GLOBAL_CONFIG_ROOT=$CORE_GLOBAL_CONFIG_PATH"