Skip to content

Commit c9f2bae

Browse files
Merge pull request #51 from dev-sec/log
change log path and name for centos>7
2 parents 2a1e1a5 + 13e2639 commit c9f2bae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controls/mysql_conf.rb

+2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
mysql_config_file = mysql_config_path + 'my.cnf'
3434
mysql_data_path = '/var/lib/mysql/'
3535
mysql_log_path = '/var/log/'
36+
mysql_log_path = '/var/log/mariadb/' if os[:release] >= '7'
3637
mysql_log_file = 'mysqld.log'
38+
mysql_log_file = 'mariadb.log' if os[:release] >= '7'
3739
mysql_log_group = 'mysql'
3840
service_name = 'mysqld'
3941
service_name = 'mariadb' if os[:release] >= '7'

0 commit comments

Comments
 (0)