Start Odoo Postgres in install.sh

This commit is contained in:
Disassembler 2019-11-13 21:01:27 +01:00
parent de80024445
commit 9c50b29d22
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit be361996402ae104baf45b21c918cc145b763d16
Subproject commit 41156fe4243b15b4b233b618082aae8ce32e5a2b

View File

@ -13,6 +13,7 @@ cp postgres_data/pg_hba.conf /srv/odoo/postgres_data/pg_hba.conf
# Create databases
export ODOO_PWD=$(head -c 18 /dev/urandom | base64 | tr -d '+/=')
service odoo-postgres start
envsubst <createdb.sql | lxc-attach -u 5432 -g 5432 odoo-postgres -- psql
# Configure Odoo
@ -24,7 +25,6 @@ chown 100000:100000 /srv/odoo/odoo_conf/
chown 108080:108080 /srv/odoo/odoo_data/
# Populate database
# TODO: proc ne execute?
lxc-start odoo -- /srv/odoo/odoo-bin -c /srv/odoo/odoo.conf -i base --load-language=cs_CZ
until grep -q 'odoo.modules.loading: Modules loaded.' /var/log/lxc/odoo.log; do
sleep 1