Re: Run an external command at the %post

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

 



Do you set PATH variable in the postinstall script or
in the shell you are runnig rpm from ?

As long as i remember rpm before running
pre/post script reset some env variables (include
PATH). Anyway you can add
echo $PATH into your posinstall script, just to verify
that PATH relly set as you intended.
Or just invoke ant vith fullpath.

Valery.

--- Lis Maria Thomas <lthomas2@xxxxxxxxxxx> wrote:

> Hi
> 
> I am facing an issue with the ant command. When I
> try to run the ant
> command ant -f deploy.xml deploy at the %post
> session of the spec file,
> the error I am getting is
> 
> 		/var/tmp/rpm-tmp.75591: line 4: ant: command not
> found
> 		error: %post(xxx-1.0-6) scriptlet failed, exit
> status
> 127
> 
> But when I try to run the same ant command manually
> at the target
> location, it is working fine. I have set the PATH
> variable also
> correctly)
> 
> Can somebody help me out as to why I am not able to
> fire an ant command
> at the %post .
> 
> Thanks & Regards
> 
> Lis
> > _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list




 
____________________________________________________________________________________
Sponsored Link

Get an Online or Campus degree
Associate's, Bachelor's, or Master's - in less than one year.
http://www.findtherightschool.com

_______________________________________________
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