fix(scripts): disable MSYS path translation in migrate-local-db-to-server.sh
pg_dump inside the container failed with "could not open output file C:/Users/.../Temp/studioflow_migration_....dump" - Git Bash/MSYS was rewriting the /tmp/... argument into a Windows path before handing it to docker.exe, even though it's meant to be interpreted inside the Linux container. MSYS_NO_PATHCONV=1 stops that translation.
This commit is contained in:
@@ -16,6 +16,11 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Git Bash/MSYS auto-translates POSIX-looking path args (e.g. /tmp/foo) into
|
||||||
|
# Windows paths before handing them to docker.exe - but these paths are meant
|
||||||
|
# to be interpreted inside the Linux container, not on the Windows host.
|
||||||
|
export MSYS_NO_PATHCONV=1
|
||||||
|
|
||||||
# ── Fill these in ──────────────────────────────────────────────────────────
|
# ── Fill these in ──────────────────────────────────────────────────────────
|
||||||
SSH_USER="${SSH_USER:-dummyuser}"
|
SSH_USER="${SSH_USER:-dummyuser}"
|
||||||
SSH_HOST="${SSH_HOST:-dummy.server.example}"
|
SSH_HOST="${SSH_HOST:-dummy.server.example}"
|
||||||
|
|||||||
Reference in New Issue
Block a user