also create a db for the user

Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-05-14 11:48:55 +02:00
parent 28d90e021f
commit 0ba003cfba

View file

@ -63,6 +63,9 @@ postgres_server="postgresql-${postgres_version}"
require="__package/$postgres_server" __postgres_role "$user" \ require="__package/$postgres_server" __postgres_role "$user" \
--state present --login --createdb --state present --login --createdb
require="__package/$postgres_server" __postgres_database \
"$user" --state present --owner "$user"
__package "$postgres_server" --state present __package "$postgres_server" --state present
require="__package/$postgres_server" __start_on_boot postgresql require="__package/$postgres_server" __start_on_boot postgresql