6 CONFFILE="/etc/openerp-server.conf"
7 LOGFILE="/var/log/openerp.log"
11 # Creating system user
12 adduser --no-create-home --quiet --system ${USER}
16 chown ${USER}:adm ${LOGFILE}
20 chown ${USER} /usr/lib/openerp-server/addons -R
22 chmod 0640 ${CONFFILE}
23 chown ${USER} ${CONFFILE}
26 echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *"
27 echo "* OpenERP uses a PostgreSQL database to store its data. With the first *"
28 echo "* generation of packages, you have to setup this database manually. *"
29 echo "* Please read /usr/share/doc/openerp-server/README.Debian how to do it. *"
30 echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *"
34 abort-upgrade|abort-remove|abort-deconfigure)
39 echo "postinst called with unknown argument \`{$1}'" >&2