From bcd3ba9d736fabf88b45a6808d09439c419d3927 Mon Sep 17 00:00:00 2001 From: yvanzo Date: Tue, 18 Oct 2022 08:32:05 +0100 Subject: [PATCH] Enable path conversion for Docker on Windows --- admin/configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/admin/configure b/admin/configure index 1012573f..539a6c85 100755 --- a/admin/configure +++ b/admin/configure @@ -206,6 +206,12 @@ case "$1" in sed -i.bak -e '/^COMPOSE_FILE=/d' .env && rm -f .env.bak if [[ $OS == Windows_NT ]] then + # Optional but convenient to copy/paste paths from file explorer + # https://docs.docker.com/compose/reference/envvars/#compose_convert_windows_paths + if ! grep -q '^COMPOSE_CONVERT_WINDOWS_PATHS=' "$MB_DOCKER_ROOT/.env" + then + echo 'COMPOSE_CONVERT_WINDOWS_PATHS=1' >> .env + fi # Mandatory to keep this script working # https://docs.docker.com/compose/reference/envvars/#compose_path_separator if ! grep -q '^COMPOSE_PATH_SEPARATOR=:$' "$MB_DOCKER_ROOT/.env"