blob: 5016e612d9bac9c4c75b025f16cc905207642c58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
exec 2>&1
export SSL_CERT_FILE="{{pkgPathFor "core/cacerts"}}/ssl/cert.pem"
if [[ -z "{{cfg.config_path}}" ]]; then
CLIENT_CONFIG="{{pkg.svc_config_path}}/client.rb"
else
CLIENT_CONFIG="{{cfg.config_path}}/client.rb"
fi
exec chef-client --fork -c ${CLIENT_CONFIG}/client.rb --chef-license {{cfg.chef_license}}
|