Issue
I have scriptlets written using the bash shell instead of the sh shell. During the build process I have warnings that indicate that I should be using sh instead of bash. Is there a parameter I can set to indicate that I am using bash instead of sh shell??
The rpm seems to install ok however but I wanted to know if I could specify bash somewhere?
thanks
Solution
Have you tried including a sh-bang line as the first line in the scriptlets in your spec file (like I just noticed the comment mentioned)
%post
#!/bin/bash
... rest of our post script here
If this works, you should also set up a scriptlet dependency like
Require(post): bash
Answered By - pwan