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

Run an external command at the %post



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


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