Spotter-VM/lxc-apps/odoo/install/createdb.sql

5 lines
201 B
SQL

CREATE ROLE odoo NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN ENCRYPTED PASSWORD '${ODOO_PWD}';
CREATE DATABASE odoo;
REVOKE ALL ON DATABASE odoo FROM public;
ALTER DATABASE odoo OWNER TO odoo;