[Bug 2126785] Review Request: usbrelay - USB-connected electrical relay control, based on hidapi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



--- Comment #11 from Björn Persson <bjorn@xxxxxxxxxxxxxxxxxxxx> ---
I got no response at all on the mailing list. It seems to me that the whole
sysusers thing fails to solve the problem it was meant to solve, and thus
you're free to create the group any way that works reliably. The simplest
solution seems to be to put a groupadd command directly in the scriptlet:

%package mqtt
Requires(pre): shadow-utils
[...]
%pre mqtt
groupadd --force --system usbrelay
# --force means it's not an error if the group already exists.

The spec already must know the group name for the %files section (which is why
the %pre scriptlet is needed) so hardcoding the name in %pre too doesn't
introduce a new problem.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2126785
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux