scriptlets for user creation needed

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

 



Hi All!

thias and I had a small discussion on how to create handle useradd in
specfile scriptlets. See
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=217902#c3
and for details and
http://cvs.fedora.redhat.com/viewcvs/rpms/frozen-bubble/FC-6/frozen-bubble.spec?root=extras&rev=1.5&view=markup
for the spec and the current solution.

Is not really a serious issue, but we should IMHO solve it once and for
all. Currently this two commands

/usr/sbin/useradd -r -s /sbin/nologin -d / fbubble &>/dev/null || :
/sbin/chkconfig --add fb-server

are executed in frozen-bubble-server's %post each time -- e.g. not only
on install but also on each update. That should do no harm, but looks a
bit unclean IMHO.

We should find a better scheme and put a template up somewhere that
people can simply use -- otherwise we'll end with multiple slightly
different solutions in our packages that trigger different bugs.

I know there were (and probably still are) disagreements on how to
install users in rpm files, but we should find a solution about as the
current situation sucks. Could the PC at least work out an example on
how to create users without ensc's stuff for now and put that up on
http://www.fedoraproject.org/wiki/Packaging/ScriptletSnippets

The we can search for the one and only proper solution later.

Cu
thl

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux