From 2348a83678c394ec455df71fba4f4e10cf648edf Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 24 Sep 2015 23:24:23 -0700 Subject: [PATCH] postgres-init-db: Fix running with cwd=/root. (imported from commit d2ac25fa8c54b89eed80e941b3eacf1a4c2f5546) --- scripts/setup/postgres-init-db | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/setup/postgres-init-db b/scripts/setup/postgres-init-db index 110cf7a543..88432d93dc 100755 --- a/scripts/setup/postgres-init-db +++ b/scripts/setup/postgres-init-db @@ -1,5 +1,8 @@ #!/bin/sh -xe +# Make sure the current working directory is readable +cd / + su postgres -c psql <