Skip to content

Commit 6ac1a42

Browse files
committed
Check for pid_file
1 parent 44c651b commit 6ac1a42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/mysql_service_base.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ def initialize_database
9191
bash "#{new_resource.name} initial records" do
9292
code init_records_script
9393
umask '022'
94-
returns [0, 1, 2] # facepalm
95-
not_if { db_initialized? }
94+
not_if { ::File.exist? pid_file }
9695
action :run
9796
end
9897
end

0 commit comments

Comments
 (0)