Start Odoo Postgres in install.sh
This commit is contained in:
parent
de80024445
commit
9c50b29d22
@ -1 +1 @@
|
||||
Subproject commit be361996402ae104baf45b21c918cc145b763d16
|
||||
Subproject commit 41156fe4243b15b4b233b618082aae8ce32e5a2b
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user