Skip to content

Commit

Permalink
Improved compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-zaroda committed Aug 20, 2024
1 parent 01ecf78 commit dd4555d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/templates/draky.template
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit dd4555d

Please sign in to comment.