nebula-plugins/gradle-ospackage-plugin

Set interpeter for RPM hook scripts explicitly

Open

#301 opened on Sep 7, 2018

View on GitHub
 (0 comments) (5 reactions) (0 assignees)Groovy (128 forks)batch import
Hacktoberfest

Repository metrics

Stars
 (388 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I'm building an RPM package and I would like to know, how can I set bash interpreter explicitly for prein, postin, preun and postun scriptlets. I'm trying to do this because I would like to be sure that Bash shell is used to run this scriptlets during installation (but default interpreter is /bin/sh as I can see). If I understand correctly, when RPM SPEC file is being written manually, there is an ability to set interpreter using -p option, e.g.: %pre -p bash So is there is any way to specify interpreter using ospackage RPM plugin capabilities?

Contributor guide