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

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -