File tree 2 files changed +1
-10
lines changed
2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -256,14 +256,6 @@ def db_init
256
256
mysql_install_db_cmd
257
257
end
258
258
259
- def db_initialized?
260
- if v80plus
261
- ::File . exist? "#{ data_dir } /mysql.ibd"
262
- else
263
- ::File . exist? "#{ data_dir } /mysql/user.frm"
264
- end
265
- end
266
-
267
259
def mysql_install_db_bin
268
260
return "#{ base_dir } /scripts/mysql_install_db" if platform_family? ( 'omnios' )
269
261
return "#{ prefix_dir } /bin/mysql_install_db" if platform_family? ( 'smartos' )
Original file line number Diff line number Diff line change @@ -91,8 +91,7 @@ def initialize_database
91
91
bash "#{ new_resource . name } initial records" do
92
92
code init_records_script
93
93
umask '022'
94
- returns [ 0 , 1 , 2 ] # facepalm
95
- not_if { db_initialized? }
94
+ not_if { ::File . exist? ( new_resource . pid_file ) }
96
95
action :run
97
96
end
98
97
end
You can’t perform that action at this time.
0 commit comments