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

5 lines
201 B
MySQL
Raw Normal View History

2018-11-17 22:08:10 +01:00
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;