summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2019-04-11 16:50:31 -0400
committerBryan McLellan <btm@loftninjas.org>2019-04-11 16:50:31 -0400
commit68b9e91d3b1471dafbe854fd3fcdc793d5a8b70e (patch)
treedb40ea0c77ab29d3c9d6a3d536eba9a269305173
parent49723849fe14f5205f982b2283cf93ddfa01423e (diff)
downloadchef-68b9e91d3b1471dafbe854fd3fcdc793d5a8b70e.tar.gz
Drop privileges before creating files in solo modebtm/fix-solo-perms
Fixes #8360 Signed-off-by: Bryan McLellan <btm@loftninjas.org>
-rw-r--r--lib/chef/application/solo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application/solo.rb b/lib/chef/application/solo.rb
index 148e7720a5..ee2509e821 100644
--- a/lib/chef/application/solo.rb
+++ b/lib/chef/application/solo.rb
@@ -218,12 +218,12 @@ class Chef::Application::Solo < Chef::Application
# Get this party started
def run
setup_signal_handlers
+ setup_application
reconfigure
for_ezra if Chef::Config[:ez]
if !Chef::Config[:solo_legacy_mode]
Chef::Application::Client.new.run
else
- setup_application
run_application
end
end