Commit 51929d49 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

deploy: Alter db owner+access to create

Modify database initiliazation by declaring the database owner, and
giving access to synnefo user to create databases. This options are
needed in order to be able to run tests in postgres db.
parent 35e035ee
CREATE DATABASE snf_apps WITH ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' TEMPLATE=template0;
CREATE USER %SYNNEFO_USER% WITH PASSWORD '%SYNNEFO_DB_PASSWD%';
CREATE USER %SYNNEFO_USER% WITH PASSWORD '%SYNNEFO_DB_PASSWD%' CREATEDB;
CREATE DATABASE snf_apps WITH ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' TEMPLATE=template0 OWNER=%SYNNEFO_USER%;
GRANT ALL PRIVILEGES ON DATABASE snf_apps TO %SYNNEFO_USER%;
CREATE DATABASE snf_pithos WITH ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' TEMPLATE=template0;
CREATE DATABASE snf_pithos WITH ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' TEMPLATE=template0; OWNER=%SYNNEFO_USER%;
GRANT ALL PRIVILEGES ON DATABASE snf_pithos TO %SYNNEFO_USER%;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment