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

executing external shell scripts under %pre, %post, %preun, %postun sections.



Title: executing external shell scripts under %pre, %post, %preun, %postun sections.

Hello all,

Could you tell me how to execute a shell script in %pre, %post, %preun, %postun sections of a spec file. I'm porting an application  from AIX to Linux. On AIX,  preinstall, postinstall etc are different files rather than part of a same spec file as in linux.

I tried to execute these files by
  i) first copying them to $RPM_BUILD_ROOT in %install phase
 ii) then tried to execute that file. Like:

       %pre
       $RPM_BUILD_ROOT/pre_install

But this didn't work.


Thanks,
Sivaji.
**************************************************************************
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

**************************************************************************


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