Skip to content

fix(entrypoint): quote configuration paths under PGDATA - #37

Open
youngkermit8-coder wants to merge 1 commit into
IvorySQL:mainfrom
youngkermit8-coder:codex/entrypoint-pgdata-spaces
Open

youngkermit8-coder wants to merge 1 commit into
IvorySQL:mainfrom
youngkermit8-coder:codex/entrypoint-pgdata-spaces

Conversation

@youngkermit8-coder

Copy link
Copy Markdown

A PGDATA path such as /tmp/data with spaces is split into multiple filenames by the post-initdb sed commands, aborting initialization. Quote both configuration paths and synchronize all generated entrypoints. The optional ivorysql.conf guard is preserved.

Validation: bash tests/entrypoint-pgdata.sh: 66 cases across 11 entrypoints, exercising plain, space-containing and bracket-containing paths, both with and without ivorysql.conf. This runs the real sed edits with initdb stubbed; the space-containing baseline fails and the patched cases pass.

git diff --check passes. No live database server or full image build was run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant