Omnibus post-install script


#1

I am using omnibus-ruby to create a package to install our command-line tool/gem rumm. What I would like to do is to either symlink the gem executable to /usr/local/bin or add the /opt/rumm/emedded/bin/rumm to PATH.

Is there a method in omnibus to run post-install scripts? Adding anything to ‘build’ step won’t run when package installs. I apologize for my ignorance on how all this works…


#2

You can put a postinst script in package_scripts_path and it should run it
automatically upon install.

See:

https://github.com/opscode/omnibus-chef/blob/master/package-scripts/chef/po
stinst#L74-L80


L539-L541

For example. HTH.

Nathan L Smith
smith@opscode.com

On 8/20/13 2:46 PM, “Michael Hayes” hayesmp@thefrontside.net wrote:

https://github.com/hayesmp/omnibus-rumm

I am using omnibus-ruby to create a package to install our command-line
tool/gem rumm. What I would like to do is to either symlink the gem
executable to /usr/local/bin or add the /opt/rumm/emedded/bin/rumm to
PATH.

Is there a method in omnibus to run post-install scripts? Adding anything
to ‘build’ step won’t run when package installs. I apologize for my
ignorance on how all this works…