Comment 2 for bug 785645

Revision history for this message
jamie campbell (3-jamie) wrote : Re: package openerp-server 5.0.14-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

This problem also exists with http://www.openerp.com/download/stable/deb/openerp-server-6.0.2-0_all.deb . In that case, the issue is that the postinst grep triggers at least one false positive.

On my system there is an openerp-web user. The postinst script is interested in an openerp user, but the checking line is "if ! getent passwd | grep -q "^${_USERNAME}"" , it needs to use "^${_USERNAME}:" instead so as not to catch users it's not trying to catch. The ":" isn't a magic character, it's the format of lines from getent (user:password:userid:etcetc)

I've attached a new postinst script which does this, which should be used to build future openerp-server deb files