Skip to content

Commit 9c6594d

Browse files
committed
Change default UID to 999
Because we have other interacting containers expecting this UID by default, so it is easier to change it globally than to change it on every composition.
1 parent f1f3cf9 commit 9c6594d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

9.0/bin/docker-entrypoint.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ set -e
33

44
# allow to customize the UID of the odoo user,
55
# so we can share the same than the host's.
6-
# If no user id is set, we use 9001
7-
# so we have hardly any chance to collide
8-
# with an existing UID on the host
9-
# See https://denibertovic.com/posts/handling-permissions-with-docker-volumes/
10-
USER_ID=${LOCAL_USER_ID:-9001}
6+
# If no user id is set, we use 999
7+
USER_ID=${LOCAL_USER_ID:-999}
118

129
echo "Starting with UID : $USER_ID"
1310
id -u odoo &> /dev/null || useradd --shell /bin/bash -u $USER_ID -o -c "" -m odoo

0 commit comments

Comments
 (0)