[ADD] docker: support when volume is mounted on /etc/odoo
- config odoo.conf is overwrite, so made a copy before solve the problem
This commit is contained in:
parent
fd71794333
commit
8a9ffe423d
2 changed files with 7 additions and 0 deletions
|
|
@ -43,6 +43,8 @@ RUN cd $ODOO_PREFIX && \
|
|||
./docker/repo_manifest_gen_org_prefix_path.py $ODOO_PREFIX/addons /etc/odoo/odoo.conf /etc/odoo/odoo.conf && \
|
||||
head /etc/odoo/odoo.conf
|
||||
|
||||
RUN cp /etc/odoo/odoo.conf /odoo.conf
|
||||
|
||||
#RUN mkdir '/home/odoo/.local'
|
||||
#RUN chown -R odoo '/home/odoo/.local'
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,11 @@ then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Fix volumes of odoo.conf if not exist
|
||||
if [ ! -f "/etc/odoo/odoo.conf" ]; then
|
||||
cp /odoo.conf /etc/odoo/odoo.conf
|
||||
fi
|
||||
|
||||
# set the postgres database host, port, user and password according to the environment
|
||||
# and pass them as arguments to the odoo process if not present in the config file
|
||||
: ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue