Problem with executing my own external script in the %install section
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat RPM > Problem with executing my own external script in the %install section




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

td98esj is offline     Problem with executing my own external script in the %install section  
td98esj


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for td98esj Click here to Send td98esj a Private Message Find more posts by td98esj Add td98esj to your buddy list
 
01-06-05 11:35 AM

Hi, 

I am developing an rpm to be installed on several different linux-distributi
ons.

In my rpm I have these files among others:
7.rc.a
7.rc.b
7.rc.c
rc.a
rc.b
rc.c

I have written my own script that checks for a specific version of sh-utils 
or if coreutils is installed.

If the version of sh-utils is older than a specific version, then my rpm mus
t install the 7.*-files and rename them to rc.*.
The renaming is done in my script by using the move command.
Something like this below.
# mv 7.rc.a /installDIR/rc.a

My script is launched from within the %install-section in the spec-file. Whe
n i build the rpm using rpm -ba I notice that my script runs and also genera
tes a log file, but when I install the rpm I get no output to my log file so
 I am not sure that my script is actually executed during installation of my
 rpm.

I dont want to have 2 different rpm:s just because some RH-systems have olde
r version of sh-utils installed.

I would appreciate any solution to this problem.

/Best Regards Erik




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:44 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register