Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pre-start when upgrading long-lived Directors
When running `bosh create-env` on a long-running BOSH Director, the postgres pre-start script will fail if there's an old postgres-9.4 data directory. This commit fixes that by recognizing if the DB has already been updated to postgres-10, and clears out the obsolete data directory to free up space (typically that directory is ~2 years old). Fixes, `/var/vcap/sys/log/postgres/pre-start.stdout.log`: ``` kernel.shmmax = 67108864 Please use a previous bosh release version (271.x or lower) to migrate data from postgres-9.4 to postgres-10. ``` [#181800235](https://www.pivotaltracker.com/story/show/181800235) Signed-off-by: Brian Cunnie <[email protected]>
- Loading branch information