diff --git a/templates/devel/scripts/entrypoint.sh b/templates/devel/scripts/entrypoint.sh index d29e64b0..54560790 100755 --- a/templates/devel/scripts/entrypoint.sh +++ b/templates/devel/scripts/entrypoint.sh @@ -17,6 +17,15 @@ USER_HOME="/home/user" USER_NAME="${USER_HOME##*/}" USER_ID="$(id -u "${USER_NAME}")" +########################################################### +# XDG Configuration # +########################################################### + +export XDG_RUNTIME_DIR="/run/user/${USER_ID}" + +mkdir -p "${XDG_RUNTIME_DIR}" +chown "${USER_NAME}:${USER_NAME}" "${XDG_RUNTIME_DIR}" + ########################################################### # SSH Configuration # ########################################################### @@ -99,10 +108,6 @@ fi # Run Docker Daemon # ########################################################### -export XDG_RUNTIME_DIR="/run/user/${USER_ID}" -mkdir -p "${XDG_RUNTIME_DIR}" -chown "${USER_NAME}:${USER_NAME}" "${XDG_RUNTIME_DIR}" - export DOCKER_BIN="${USER_HOME}/.local/bin" export DOCKER_HOST="unix://${XDG_RUNTIME_DIR}/docker.sock" export PATH="${DOCKER_BIN}:${PATH}"