Skip to content

Commit ec3516c

Browse files
committed
Create /data/odoo folders before running odoo
So they are directly chown-ed to the odoo user, otherwise, on the first boot, we might have errors that 'sessions' cannot be created.
1 parent ed5ac24 commit ec3516c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

9.0/bin/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ $BINDIR/wait_postgres.sh
8585
BASE_CMD=$(basename $1)
8686
if [ "$BASE_CMD" = "odoo.py" ]; then
8787

88+
mkdir -p /data/odoo/addons /data/odoo/filestore /data/odoo/sessions
8889
chown -R odoo: /data/odoo
8990
chown -R odoo: /var/log/odoo
9091

0 commit comments

Comments
 (0)