Hi,
In the rpm SPEC file there is %pre section for preinstall scripts.
We can write any think in the "sh" format here.
I want to call a script here. How can i do this?
Thanks
Hi,
In the rpm SPEC file there is %pre section for preinstall scripts.
We can write any think in the "sh" format here.
I want to call a script here. How can i do this?
Thanks
Just call it like you would in any shell script. If it's a python script, then "python script.py". If it's a BASH script, then "bash script.sh", and so forth. Anything in the %pre section of the SPEC is standard Bourne shell scripting, so treat it like you would any other shell script.
Okay,
But where will the script be present.
I can't put it in package, as i have to call it before the package is installed.
Which location i am left with now?