summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2014-09-03 20:05:37 +0200
committerChristophe Simonis <chs@odoo.com>2014-09-04 16:27:58 +0200
commit80a932479b8a49ca716f017f80fdb0984b10adb3 (patch)
treeea0fcddf2f37a10b31e0cbff9ce4561fdbd81cf3 /debian/postinst
parent22324537602888143c0efae672deac0ec3f6d369 (diff)
FIX] packaging: odoo-ification
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst16
1 files changed, 8 insertions, 8 deletions
diff --git a/debian/postinst b/debian/postinst
index ea91c1d1532..ae2c8323ef6 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -2,19 +2,19 @@
set -e
-ODOO_CONFIGURATION_FILE=/etc/openerp/openerp-server.conf
-ODOO_GROUP="openerp"
-ODOO_DATA_DIR=/var/lib/openerp
-ODOO_LOG_DIR=/var/log/openerp
-ODOO_USER="openerp"
+ODOO_CONFIGURATION_FILE=/etc/odoo/openerp-server.conf
+ODOO_GROUP="odoo"
+ODOO_DATA_DIR=/var/lib/odoo
+ODOO_LOG_DIR=/var/log/odoo
+ODOO_USER="odoo"
case "${1}" in
configure)
- if ! getent passwd | grep -q "^openerp:"; then
+ if ! getent passwd | grep -q "^odoo:"; then
adduser --system --no-create-home --quiet --group $ODOO_USER
fi
- # Register "openerp" as a postgres superuser
- su - postgres -c "createuser -s openerp" 2> /dev/null || true
+ # Register "$ODOO_USER" as a postgres superuser
+ su - postgres -c "createuser -s $ODOO_USER" 2> /dev/null || true
# Configuration file
chown $ODOO_USER:$ODOO_GROUP $ODOO_CONFIGURATION_FILE
chmod 0640 $ODOO_CONFIGURATION_FILE