Hi, I guess you should leave all the sections of the spec file blank and go to the %post section and write a few lines of code to check if the user already exists, and based on that, you can create the user or report the appropriate error message and abort the RPM install. But let me ask you why an RPM for this? RPM is meant for something else. Why not just write a shell script for this, which would be more appropriate? Regards, -- Hari On 9/13/06, Dave Morrow <david.morrow@xxxxxxxxxxxx> wrote:
I am in the process of creating my first RPM, so please try not to flame me too badly should my question turn out to be too stupid :) Basically, I am wondering if someone can assist me. I want the RPM I am creating to create a user if it does not already exist. Can someone assist me with this? (Assuming it can be done ) David Morrow Technical Systems Lead Autodata Solutions Company David.Morrow@xxxxxxxxxxxx http://www.autodatasolutions.com Tel: (519) 963-3020 Fax: (519) 451-6615 < Lead, follow or get out of the way! > This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at Administrator@xxxxxxxxxxxx <mailto:Administrator@xxxxxxxxxxxx> _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list