summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-03-11 12:20:38 -0800
committerTim Smith <tsmith84@gmail.com>2021-03-11 12:20:38 -0800
commitdcce4654666e5965f6bc1afce131d700ab9abdc1 (patch)
tree6df55dd6d632d25509c94c543817d0209b07e5e5
parent0f4f56a0d59a0122ec7a36f03193b51f21b1f341 (diff)
downloadchef-config_perms.tar.gz
Stop chowning the chef install dir in the postinstconfig_perms
We entirely remove /opt/chef now so there should be no need to do this IO intensive operation. Signed-off-by: Tim Smith <tsmith@chef.io>
-rwxr-xr-xomnibus/package-scripts/chef/postinst5
1 files changed, 0 insertions, 5 deletions
diff --git a/omnibus/package-scripts/chef/postinst b/omnibus/package-scripts/chef/postinst
index 0c2d10dd6d..fa41f83ab4 100755
--- a/omnibus/package-scripts/chef/postinst
+++ b/omnibus/package-scripts/chef/postinst
@@ -93,11 +93,6 @@ ln -sf $INSTALLER_DIR/bin/ohai $PREFIX/bin || error_exit "Cannot link ohai to $P
# must appear as the last real action in the script
ln -sf $INSTALLER_DIR/bin/chef-client $PREFIX/bin || error_exit "Cannot link chef-client to $PREFIX/bin"
-# Ensure all files/directories in $INSTALLER_DIR are owned by root. This
-# has been fixed on new installs but upgrades from old installs need to
-# 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