promote develop to master #6

Merged
unkinben merged 449 commits from develop into master 2024-06-01 14:48:48 +10:00
Showing only changes of commit a9aabfa161 - Show all commits

View File

@ -1,14 +1,13 @@
# frozen_string_literal: true
# skip if mysql isnt installed or active
next unless system('which mysql > /dev/null 2>&1')
next unless system('systemctl is-active --quiet mariadb')
if system('which mysql > /dev/null 2>&1') && system('systemctl is-active --quiet mariadb')
# export mysql wsrep status
wsrep_status = `mysql -e "SHOW STATUS LIKE 'wsrep%';"`
# export mysql wsrep status
wsrep_status = `mysql -e "SHOW STATUS LIKE 'wsrep%';"`
# loop over the output
wsrep_status.each_line do |line|
# loop over the output
wsrep_status.each_line do |line|
# skip the line unless it starts with 'wsrep_'
next unless line.match(/^wsrep_/)
@ -18,4 +17,5 @@ wsrep_status.each_line do |line|
value.strip
end
end
end
end