summaryrefslogtreecommitdiff
path: root/omnibus
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-03-09 17:14:36 -0800
committerTim Smith <tsmith84@gmail.com>2021-03-10 12:42:00 -0800
commite059d90899e08adf44906931b7b31c2250dbf061 (patch)
tree8a244122168c0dc7426b6487fc6fc60a48a3a639 /omnibus
parent06c4c975bca9a318c716c2c6aaaa4170ad68a3b3 (diff)
downloadchef-e059d90899e08adf44906931b7b31c2250dbf061.tar.gz
Make the /etc/chef directory as part of the install
You shouldn't need to create this by hand post install. Chef should be as ready to go as we can possibly get it. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'omnibus')
-rwxr-xr-xomnibus/package-scripts/chef/postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/omnibus/package-scripts/chef/postinst b/omnibus/package-scripts/chef/postinst
index 1500feac0c..37ed70a240 100755
--- a/omnibus/package-scripts/chef/postinst
+++ b/omnibus/package-scripts/chef/postinst
@@ -99,6 +99,12 @@ ln -sf $INSTALLER_DIR/bin/chef-client $PREFIX/bin || error_exit "Cannot link che
# be manually fixed.
chown -Rh 0:0 $INSTALLER_DIR
+# make the base structure for chef to run
+mkdir -p /etc/chef/client.d/
+mkdir -p /etc/chef/accepted_licenses
+mkdir -p /etc/chef/trusted_certs
+mkdir -p /etc/chef/ohai/plugins
+
echo "Thank you for installing Chef Infra Client! For help getting started visit https://learn.chef.io"
exit 0