[Bug 693425] Review Request: openerp - OpenERP business application

bugzilla at redhat.com bugzilla at redhat.com
Mon Aug 15 13:51:55 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=693425

--- Comment #63 from Matthias Saou <matthias at rpmforge.net> 2011-08-15 09:51:54 EDT ---
I've now started testing the openerp-server package. First blocker encountered
:

--
%pre
    getent group openerp >/dev/null || groupadd -r openerp
    getent passwd openerp >/dev/null || \
        useradd -r -d /var/spool/openerp -s /sbin/nologin \
        -c "OpenERP Server" openerp
--

This results in the following :
useradd: group openerp exists - if you want to add this user to that group, use
-g.

The error message is quite explicit : Either don't manage the group separately,
or pass "-g openerp" to the useradd command.

I would suggest this simple and effective approach (see the "httpd" rpm) :

/usr/sbin/useradd -c "OpenERP Server" \
 -s /sbin/nologin -r -d /var/spool/openerp openerp 2>/dev/null || :

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list