Commit b50c9c47 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Prevent corrupting the PG DB during initialization

If the bootstrap script fails, Make will delete the file it was trying
to 'build'. In this case that meant deleted PG_VERSION. By make a
directory, postgresql/data, instead of a file the target we prevent
this deleting behavior.

We want this because the bootstrap can take forever while it generates
seed data and the user may press Ctrl-C.
parent 313f2f84
......@@ -119,9 +119,9 @@ redis: redis/redis.conf
sed "s|/home/git|${gitlab_development_root}|" $@.example > $@
postgresql: postgresql/data/PG_VERSION
postgresql: postgresql/data
${postgres_bin_dir}/initdb --locale=C -E utf-8 postgresql/data
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment