Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
b42bb38c
Commit
b42bb38c
authored
3 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
when using chown, also include /var/lib/odoo for odoo 10+
parent
00b990bf
No related branches found
No related tags found
1 merge request
!55
Improve chown
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+1
-0
1 addition, 0 deletions
NEWS.rst
odoo_scripts/docker_dev_start.py
+7
-2
7 additions, 2 deletions
odoo_scripts/docker_dev_start.py
with
8 additions
and
2 deletions
NEWS.rst
+
1
−
0
View file @
b42bb38c
...
...
@@ -7,6 +7,7 @@
Add option to include custom developer mode. Default is still to use reload and pdb. To use ipdb, use ``--dev-opt ipdb`` instead of ``--ipdb``.
docker_dev_start chown option also chown the content of ``/var/lib/odoo`` for recent Odoo.
9.0.1
-----
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/docker_dev_start.py
+
7
−
2
View file @
b42bb38c
...
...
@@ -565,6 +565,11 @@
# make sure the permission in the volumes are correct
if
run_chown
:
_logger
.
info
(
"
chown container’s /mnt to Odoo user
"
)
chown_directories
=
[
"
/mnt
"
]
if
odoo_type
not
in
(
"
odoo7
"
,
"
odoo8
"
):
chown_directories
.
append
(
"
/var/lib/odoo
"
)
_logger
.
info
(
"
chown container’s %s to Odoo user
"
,
"
,
"
.
join
(
chown_directories
)
)
client
.
containers
.
run
(
image
,
...
...
@@ -569,6 +574,6 @@
client
.
containers
.
run
(
image
,
command
=
[
"
odoo
"
,
"
--recursive
"
,
"
/mnt
"
]
,
command
=
[
"
odoo
"
,
"
--recursive
"
]
+
chown_directories
,
remove
=
True
,
entrypoint
=
"
/bin/chown
"
,
mounts
=
mounts
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment