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 <[email protected]> 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.
_______________________________________________
package-review mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/package-review

Reply via email to