diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-03-10 12:56:41 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-03-10 12:56:41 -0800 |
commit | 75b5b491c1b394b8152225bce682b1540af5350c (patch) | |
tree | 90f6ee7b31ba755ca31382cfed3ba570401386b5 | |
parent | e059d90899e08adf44906931b7b31c2250dbf061 (diff) | |
download | chef-post_install.tar.gz |
Create client.rb in postinst with 640 perms not 644post_install
This matches the permissions we give this file in the chef_client_config resource and in the chef-client cookbook
Signed-off-by: Tim Smith <tsmith@chef.io>
-rwxr-xr-x | omnibus/package-scripts/chef/postinst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/omnibus/package-scripts/chef/postinst b/omnibus/package-scripts/chef/postinst index 37ed70a240..0c2d10dd6d 100755 --- a/omnibus/package-scripts/chef/postinst +++ b/omnibus/package-scripts/chef/postinst @@ -3,11 +3,10 @@ # # - must run on /bin/sh on solaris 9 # - must run on /bin/sh on AIX 6.x -# - if you think you are a bash wizard, you probably do not understand -# this programming language. do not touch. +# - this file is sh not bash so do not introduce bash-isms # - if you are under 40, get peer review from your elders. # -# Install a full Opscode Client +# Install Chef Infra Client # PROGNAME=`basename $0` @@ -64,7 +63,7 @@ EOP if [ "" != "$organization" ]; then echo "validation_client_name '${organization}-validator'" >> ${CONFIG_DIR}/client.rb fi - chmod 644 ${CONFIG_DIR}/client.rb + chmod 640 ${CONFIG_DIR}/client.rb fi if [ "" != "$validation_key" ]; then |