Skip to content

run directory creation & permission change when PGDATA is a mountpoint #461

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

Closed
wants to merge 1 commit into from

Conversation

itscaro
Copy link

@itscaro itscaro commented Jun 17, 2018

When using image with data persisted to the image, these operations take a lot of time and are not needed if the image was correctly created.

It's possible to override the entrypoint in the new image, but I think it might be a good idea to have this in the base image.

Signed-off-by: Minh-Quan TRAN [email protected]

@itscaro itscaro closed this Jun 17, 2018
@itscaro itscaro reopened this Jun 17, 2018
@itscaro itscaro closed this Jun 18, 2018
@itscaro itscaro reopened this Jun 18, 2018
@itscaro itscaro closed this Jun 19, 2018
@itscaro itscaro reopened this Jun 19, 2018
@itscaro itscaro closed this Jul 27, 2018
@itscaro itscaro reopened this Jul 27, 2018
@yosifkit
Copy link
Member

This is addressed in #496. chown is only run on things that are not owned by the postgres user:

find "$PGDATA" \! -user postgres -exec chown postgres '{}' +

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