LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pre install script (https://www.linuxquestions.org/questions/linux-newbie-8/pre-install-script-4175577343/)

apss_evaluator 04-13-2016 06:17 AM

pre install script
 
Hi linux guru's,
is there a way I can set in pre-install.in on the rpm package to have this steps?

1> check if /opt/opscenter/cfg forlder exists
2> if not cancel the rpm installation
2> if yes continue the rpm installation

TB0ne 04-13-2016 07:25 AM

Quote:

Originally Posted by apss_evaluator (Post 5530383)
Hi linux guru's,
is there a way I can set in pre-install.in on the rpm package to have this steps?

1> check if /opt/opscenter/cfg forlder exists
2> if not cancel the rpm installation
2> if yes continue the rpm installation

...and putting "rpm pre install script" into Google pulls up, as the VERY FIRST HIT:
http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html

After being here for FOUR YEARS, and asking many questions about RPM packages, why weren't you able to do this basic bit of research? Read the "Question Guidelines" link in my posting signature.


All times are GMT -5. The time now is 10:49 AM.