Skip to content

Commit

Permalink
postgres-init-db: Fix running with cwd=/root.
Browse files Browse the repository at this point in the history
(imported from commit d2ac25fa8c54b89eed80e941b3eacf1a4c2f5546)
  • Loading branch information
timabbott committed Sep 25, 2015
1 parent ae4cb6d commit 2348a83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/setup/postgres-init-db
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh -xe

# Make sure the current working directory is readable
cd /

su postgres -c psql <<EOF
CREATE USER zulip;
ALTER ROLE zulip SET search_path TO zulip,public;
Expand Down

0 comments on commit 2348a83

Please sign in to comment.