Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
b8f1ed14
Commit
b8f1ed14
authored
10 years ago
by
Simon Lejeune
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] packaging: debian: set /var/lib/odoo as odoo user home dir
parent
74157326
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/postinst
+1
-2
1 addition, 2 deletions
debian/postinst
with
1 addition
and
2 deletions
debian/postinst
+
1
−
2
View file @
b8f1ed14
...
...
@@ -11,7 +11,7 @@ ODOO_USER="odoo"
case
"
${
1
}
"
in
configure
)
if
!
getent passwd |
grep
-q
"^odoo:"
;
then
adduser
--system
--
no-create-home
--quiet
--group
$ODOO_USER
adduser
--system
--
home
$ODOO_DATA_DIR
--quiet
--group
$ODOO_USER
fi
# Register "$ODOO_USER" as a postgres superuser
su - postgres
-c
"createuser -s
$ODOO_USER
"
2> /dev/null
||
true
...
...
@@ -23,7 +23,6 @@ case "${1}" in
chown
$ODOO_USER
:
$ODOO_GROUP
$ODOO_LOG_DIR
chmod
0750
$ODOO_LOG_DIR
# Data dir
mkdir
-p
$ODOO_DATA_DIR
chown
$ODOO_USER
:
$ODOO_GROUP
$ODOO_DATA_DIR
# update-python-modules NOW otherwise invoke-rc.d openerp start will fail
update-python-modules
...
...
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