Re: Resending : Unable to Excute custom shell scripts from %pre tag in rpm spec file

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

 



On Fri, 2005-08-12 at 10:47 +0530, shekhar vaggu wrote:
> Hi All,
> 
> I am trying to excute some custom shell scripts written by me for some
> basic checks as part of my rpm install in {pre-install} %pre tag
> section in rpm spec file.But when rpm builds the binary it will have
> this file as part of it,but when it starts the installation it doesn't
> know from where these shell scripts should be excuted.I was just
> wondering how should I put these scripts under %pre section so that
> these will get excuted as part of my pre-install steps.

The script itself needs to be written in the %pre section it self if it
is included in the package as otherwise it's not on disk yet.  This
should be fairly obvious as it's a preinstall script!!

You could do %include path/in/src/dir/to/script under %pre which will
dump it in at build time without having to duplicate in the spec.

Paul

_______________________________________________
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