Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme is sparse on an example for options.{pre,post}{install,uninstall} #23

Open
denodaeus opened this issue Jan 26, 2015 · 1 comment

Comments

@denodaeus
Copy link

The readme is really lacking on how to define one of these and I haven't been able to get through it reading the source. It looks like you're looking for a external file to be defined to run, but the type for these are an object. I've tried:

postUninstall: 'myScript.sh'

and

postUninstall: { src: ['myScript.sh''] }

With not much luck. Anyone have a good example of how to specify a postinstall scriptlet here? Thanks.

@denodaeus denodaeus changed the title Readme is space on an example for options.{pre,post}{install,uninstall} Readme is sparse on an example for options.{pre,post}{install,uninstall} Jan 26, 2015
@renevo
Copy link

renevo commented May 21, 2015

I was able to get it working by doing the following:

options: {
    summary: 'Summary',
    postInstall: {
        src: 'scripts/postInstall.sh'
    }
}

Where the scripts folder is in the root of my folder where i run grunt rpm.

Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants