Re: setting environment variables in spec file

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

 




--- Lakshmi V <lakshmi.granger@xxxxxxxxx> wrote:

> I wanted to set / update environment variables which
> would be available even
> after my install. For example, I want to update the
> PATH with my
> application's install area
> I saw that while doing the install, when I do an
> export in %post and did an
> echo on it , it printed the value, but once the
> install is done, I am unable
> to view it in my system's environment.
> Thanks
> Lakshmi
You can consider put appropriative scripts to
/etc/profile.d/

Valery.


> 
> 
> On 12/26/05, Valery Reznic <valery_reznic@xxxxxxxxx>
> wrote:
> >
> >
> > --- Lakshmi V <lakshmi.granger@xxxxxxxxx> wrote:
> >
> > > Hi,
> > > I wanted to update my PATH and add new
> ENVIRONMENT
> > > variables in my RPM. I
> > > tried doing the following
> > >
> > > 1) export TEST="my value"
> > > or
> > > 2) export TEST='myvalue'
> > >  in %post section. It didnt give any error while
> > > installing, but nothing was
> > > set. I couldnt see any new TEST environment
> variable
> > > at all.
> > What do you trying to achive:
> > set new environment variable, which affect
> > postinstall script itself or something else ?
> >
> > Valery
> >
> > com/mailman/listinfo/rpm-list
> >
> >
> >
> >
> >
> > __________________________________
> > Yahoo! for Good - Make a difference this year.
> > http://brand.yahoo.com/cybergivingweek2005/
> >
> > _______________________________________________
> > 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



	
		
__________________________________ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/

_______________________________________________
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