Run an external command at the %post

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

 



Title: Run an external command at the %post

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

[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