Skip to content

Commit

Permalink
apply github sous-chefs/mysql/pull/541 PR to fix mysql password
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali committed Jan 26, 2018
1 parent f5dd680 commit 5a32acf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chef/cookbooks/berks/mysql/libraries/mysql_service_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ def initialize_database
# initialize database and create initial records
bash "#{new_resource.name} initial records" do
code init_records_script
user 'root'
umask '022'
returns [0, 1, 2] # facepalm
not_if "/usr/bin/test -f #{new_resource.data_dir}/mysql/user.frm"
#returns [0, 1, 2] # facepalm
#not_if "/usr/bin/test -f #{new_resource.data_dir}/mysql/user.frm"
action :run
end
end
Expand Down

0 comments on commit 5a32acf

Please sign in to comment.