zulip/scripts/setup/postgres-init-db

12 lines
205 B
Plaintext
Executable File

#/bin/sh -xe
su postgres -c psql <<EOF
CREATE USER zulip;
ALTER ROLE zulip SET search_path TO zulip,public;
DROP DATABASE IF EXISTS zulip;
CREATE DATABASE zulip OWNER=zulip;
EOF
echo "Database created"