@@ -11,7 +11,7 @@ function check_for_crashed_tables() {
...
@@ -11,7 +11,7 @@ function check_for_crashed_tables() {
set-u
set-u
# But do it in the background to not stall the boot process.
# But do it in the background to not stall the boot process.
logger -p daemon.info -i-t$0"Triggering myisam-recover for all MyISAM tables and aria-recover for all Aria tables"
logger -p daemon.info -i-t"$0""Triggering myisam-recover for all MyISAM tables and aria-recover for all Aria tables"
# Checking for $? is unreliable so the size of the output is checked.
# Checking for $? is unreliable so the size of the output is checked.
# Some table handlers like HEAP do not support CHECK TABLE.
# Some table handlers like HEAP do not support CHECK TABLE.
...
@@ -20,15 +20,15 @@ function check_for_crashed_tables() {
...
@@ -20,15 +20,15 @@ function check_for_crashed_tables() {
# We have to use xargs in this case, because a for loop barfs on the
# We have to use xargs in this case, because a for loop barfs on the
# spaces in the thing to be looped over.
# spaces in the thing to be looped over.
# If a crashed table is encountered, the "mysql" command will return with a status different from 0
# If a crashed table is encountered, the "mariadb" command will return with a status different from 0
set +e
set +e
LC_ALL=C $MYSQL--skip-column-names--batch-e'
LC_ALL=C $MARIADB--skip-column-names--batch-e'
select concat('\''select count(*) into @discard from `'\'',
select concat('\''select count(*) into @discard from `'\'',
TABLE_SCHEMA, '\''`.`'\'', TABLE_NAME, '\''`'\'')
TABLE_SCHEMA, '\''`.`'\'', TABLE_NAME, '\''`'\'')
from information_schema.TABLES where TABLE_SCHEMA<>'\''INFORMATION_SCHEMA'\'' and TABLE_SCHEMA<>'\''PERFORMANCE_SCHEMA'\'' and ( ENGINE='\''MyISAM'\'' or ENGINE='\''Aria'\'' )' | \
from information_schema.TABLES where TABLE_SCHEMA<>'\''INFORMATION_SCHEMA'\'' and TABLE_SCHEMA<>'\''PERFORMANCE_SCHEMA'\'' and ( ENGINE='\''MyISAM'\'' or ENGINE='\''Aria'\'' )' | \
## Check for the presence of both, root accounts with and without password.
## Check for the presence of both, root accounts with and without password.
...
@@ -70,10 +70,10 @@ function check_root_accounts() {
...
@@ -70,10 +70,10 @@ function check_root_accounts() {
set-e
set-e
set-u
set-u
logger -p daemon.info -i-t$0"Checking for insecure root accounts."
logger -p daemon.info -i-t"$0""Checking for insecure root accounts."
ret=$(echo"SELECT count(*) FROM mysql.user WHERE user='root' and password='' and plugin in ('', 'mysql_native_password', 'mysql_old_password');" | $MYSQL--skip-column-names)
ret=$(echo"SELECT count(*) FROM mysql.user WHERE user='root' and password='' and plugin in ('', 'mysql_native_password', 'mysql_old_password');" | "$MARIADB"--skip-column-names)