Chef Omnibus: run export PATH=/opt/rumm/embedded/bin:$PATH after package install -


we have chef omnibus package installs gem-based command line tool. how run script after omnibus unpacks? want able add omnibus embdded/bin path.

on linux use package-scripts/<project>/postinst , package-scripts/<project>/postrm. on osx, use package-scripts/<project>/makeselfinst.

and add line:

ln -sf $dest_dir/embedded/bin/<project>/usr/bin || error_exit "cannot link <project> /usr/bin"

make sure have dest_dir defined:

dest_dir=/opt/<project>


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -