[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Run an external command at the %post
- From: Valery Reznic <valery_reznic yahoo com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Run an external command at the %post
- Date: Tue, 7 Nov 2006 23:37:57 -0800 (PST)
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 sapient com> 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 redhat com
> 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]