postgres-init-db: Fix running with cwd=/root.

(imported from commit d2ac25fa8c54b89eed80e941b3eacf1a4c2f5546)
This commit is contained in:
Tim Abbott 2015-09-24 23:24:23 -07:00
parent ae4cb6df35
commit 2348a83678
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh -xe #!/bin/sh -xe
# Make sure the current working directory is readable
cd /
su postgres -c psql <<EOF su postgres -c psql <<EOF
CREATE USER zulip; CREATE USER zulip;
ALTER ROLE zulip SET search_path TO zulip,public; ALTER ROLE zulip SET search_path TO zulip,public;