Fix my.cnf identation
This commit is contained in:
@@ -1780,43 +1780,42 @@ class WOStackController(CementBaseController):
|
|||||||
if os.path.isfile("/etc/mysql/my.cnf"):
|
if os.path.isfile("/etc/mysql/my.cnf"):
|
||||||
Log.debug(self, "Tuning MySQL configuration")
|
Log.debug(self, "Tuning MySQL configuration")
|
||||||
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
||||||
"innodb_buffer_pool_size = 256M",
|
"innodb_buffer_pool_size = 256M",
|
||||||
"innodb_buffer_pool_size = {0}M"
|
"innodb_buffer_pool_size = {0}M"
|
||||||
.format(wo_ram_innodb))
|
.format(wo_ram_innodb))
|
||||||
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
||||||
"innodb_log_buffer_size = 8M",
|
"innodb_log_buffer_size = 8M",
|
||||||
"innodb_log_buffer_size = {0}M"
|
"innodb_log_buffer_size = {0}M"
|
||||||
.format(wo_ram_log_buffer))
|
.format(wo_ram_log_buffer))
|
||||||
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
||||||
"#innodb_log_file_size = 50M",
|
"#innodb_log_file_size = 50M",
|
||||||
"innodb_log_file_size = {0}M"
|
"innodb_log_file_size = {0}M"
|
||||||
.format(wo_ram_log_size))
|
.format(wo_ram_log_size))
|
||||||
WOFileUtils.searchreplace(self,
|
WOFileUtils.searchreplace(self,
|
||||||
"/etc/mysql/my.cnf",
|
"/etc/mysql/my.cnf",
|
||||||
"wait_timeout "
|
"wait_timeout "
|
||||||
" = 600",
|
" = 600",
|
||||||
"wait_timeout "
|
"wait_timeout "
|
||||||
" = 120")
|
" = 120")
|
||||||
# disabling mariadb binlog
|
# disabling mariadb binlog
|
||||||
WOFileUtils.searchreplace(self,
|
WOFileUtils.searchreplace(self,
|
||||||
"/etc/mysql/my.cnf",
|
"/etc/mysql/my.cnf",
|
||||||
"log_bin "
|
"log_bin "
|
||||||
" = /var/log/"
|
"= /var/log/mysql/"
|
||||||
"mysql/mariadb-bin",
|
"mariadb-bin",
|
||||||
"#log_bin "
|
"#log_bin "
|
||||||
" = /var/log/"
|
" = /var/log/"
|
||||||
"mysql/mariadb-bin")
|
"mysql/mariadb-bin")
|
||||||
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
||||||
"log_bin_index "
|
'log_bin_index '
|
||||||
"= /var/log/mysql/"
|
"= /var/log/mysql/"
|
||||||
"mariadb-bin.index",
|
"mariadb-bin.index",
|
||||||
"#log_bin_index "
|
"#log_bin_index "
|
||||||
"= /var/log/mysql/"
|
"= /var/log/mysql/"
|
||||||
"mariadb-bin.index")
|
"mariadb-bin.index")
|
||||||
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
||||||
"expire_logs_days "
|
"expire_logs_days = 10",
|
||||||
"= 10",
|
"#expire_logs_days "
|
||||||
"#expire_logs_days "
|
|
||||||
"= 10")
|
"= 10")
|
||||||
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
WOFileUtils.searchreplace(self, "/etc/mysql/my.cnf",
|
||||||
"max_binlog_size "
|
"max_binlog_size "
|
||||||
|
|||||||
Reference in New Issue
Block a user