We have an Chef Omnibus package that installs a gem-based command line tool. How do we run a script after Omnibus unpacks? I want to be able to add the omnibus embdded/bin to PATH.
问问题
225 次
1 回答
1
在 Linux 上,您使用package-scripts/<project>/postinst
和package-scripts/<project>/postrm
. 在 OSX 上,您使用package-scripts/<project>/makeselfinst
.
并添加这一行:
ln -sf $DEST_DIR/embedded/bin/<project>/usr/bin || error_exit "Cannot link <project> to /usr/bin"
确保您已定义 DEST_DIR:
DEST_DIR=/opt/<project>
于 2013-09-05T21:24:20.240 回答