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

Include states in run-postgresql #160

Closed
wants to merge 2 commits into from
Closed

Include states in run-postgresql #160

wants to merge 2 commits into from

Commits on Jan 13, 2017

  1. Include states in run-postgresql

    We've noticed, with persistent storage, that if the script is interrupted between lines 16 and 20 users never get created even on following container restarts because "$PGDATA/postgresql.conf" gets created before create_users is run.
    I have added states for each critical step in the startup in the folder "$PGDATA/status".
    As a side question, is there a particular reason to call set_passwords every time? (this is why I have also added the if status for it)
    matthyx committed Jan 13, 2017
    Configuration menu
    Copy the full SHA
    1d8b972 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2017

  1. Add cleaning of $PGDATA before initialize_database

    This will delete all database files in case the script has been interrupted before touching 1.initialize_database_done
    It should not harm as initialize_database expects $PGDATA to be empty
    matthyx committed Jan 18, 2017
    Configuration menu
    Copy the full SHA
    7c5733a View commit details
    Browse the repository at this point in the history