Re: How to use temporary files?

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

 



> 
> --- leam <leam@xxxxxxxxx> wrote:
> 
> > I want to include some temporary files in an RPM so
> > that they are 
> > available during the install and revoved at the end.
> > The files will be 
> > searched for information that will be appended to
> > system files. Where 
> > do I put the files in the SOURCE tree and how do I
> > refer to them in the 
> > SPEC file?
> > 
> > For example:
> > 
> > grep leam aliases.new >> /etc/aliases
> Why not just
>   echo "what you want" >> /etc/aliases ?
> 
> Or why you have to remove aliases.new file ?
> 
> Valery

Because I want to:

  grep $i /etc/passwd || grep $i passwd.new >> /etc/passwd

in the passwd, group, shadow, etc files. This lets me test if they're 
already there and add them if not, preventing duplicate entries.

ciao!

leam


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux