Skip to content
Snippets Groups Projects
Commit b8f1ed14 authored by Simon Lejeune's avatar Simon Lejeune
Browse files

[FIX] packaging: debian: set /var/lib/odoo as odoo user home dir

parent 74157326
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment