postgres-init-db: The zulip user doesn't need CREATE DB on enterprise.

Also clean up the series of similar blocks.

(imported from commit fdb468bd6be3077bdbf2d72289064397ea04f27a)
This commit is contained in:
Tim Abbott 2013-11-13 10:52:23 -05:00
parent c70adde1cd
commit c842b42b12
1 changed files with 0 additions and 7 deletions

View File

@ -2,16 +2,9 @@
su postgres -c psql <<EOF
CREATE USER zulip;
ALTER USER zulip CREATEDB;
ALTER ROLE zulip SET search_path TO zulip,public;
EOF
su postgres -c psql <<EOF
DROP DATABASE IF EXISTS zulip;
CREATE DATABASE zulip OWNER=zulip;
EOF
su postgres -c psql <<EOF
DROP SCHEMA public CASCADE;
EOF