#!/bin/sh
#
# Create role and database for PostgreSQL backend.
#
# sh /usr/pkg/share/examples/dotclear/init-pgsql.sh

dbuser=dotclear
dbname=dotclear

/usr/pkg/bin/createuser --no-createdb --encrypted --no-superuser --pwprompt --username=pgsql ${dbuser}
/usr/pkg/bin/createdb --owner=${dbuser} --username=pgsql ${dbname}
