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
Post a Comment