See the README for an overview of the license-acceptance project. This README contains the Golang implementation and notes for using it.
To use this package you need to add it to your plan, add the key/values show below to your default.toml
, and call it
in your run
hook(s).
pkg_name=example
pkg_origin=chef
pkg_version=0.1.0
pkg_description="My Example Service"
pkg_license=('Proprietary')
pkg_deps=(
chef/license-acceptance
)
[chef_license]
acceptance = "undefined"
#!/bin/sh
set -e
# Call the script to fail the service if the user has not accepted the license
{{pkgPathFor "chef/license-acceptance"}}/bin/chef-license {{cfg.chef_license.acceptance}}
[chef_license]
acceptance = "accept"