Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor shell commands on container init #1170

Merged
merged 1 commit into from
Feb 28, 2025
Merged

Refactor shell commands on container init #1170

merged 1 commit into from
Feb 28, 2025

Conversation

theory
Copy link
Contributor

@theory theory commented Feb 28, 2025

Move the shell commands to a script, init-dirs.sh, and embed it in the binary. This makes it easier to maintain the shell script without Rust escapes and no line breaks.

Change the script behavior to not only copy the contents of /tmp/pg_sharedir if sharedir is empty, but also always copy the contents of /tmp/pg_pkglibdir, as a minor version upgrade might include improvements or bug fixes.

Move the shell commands to a script, `init-dirs.sh`, and embed it in the
binary. This makes it easier to maintain the shell script without Rust
escapes and no line breaks.

Change the script behavior to not only copy the contents of
`/tmp/pg_sharedir` if sharedir is empty, but also always copy the
contents of `/tmp/pg_pkglibdir`, as a minor version upgrade might
include improvements or bug fixes.
@theory theory self-assigned this Feb 28, 2025
@theory theory merged commit e951ce9 into main Feb 28, 2025
8 checks passed
@theory theory deleted the refactor-init-sh branch February 28, 2025 19:09
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.

2 participants