mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-33750: postfix debian-start.inc
Fixes error: /usr/share/mysql/debian-start.inc.sh: line 39: /usr/bin/mariadb --defaults-file=/etc/mysql/debian.cnf: No such file or directory
This commit is contained in:
parent
1c8af2ae53
commit
9ab37940dd
1 changed files with 3 additions and 2 deletions
5
debian/additions/debian-start.inc.sh
vendored
5
debian/additions/debian-start.inc.sh
vendored
|
@ -31,13 +31,14 @@ function check_for_crashed_tables() {
|
|||
# Note that inside single quotes must be quoted with '\'' (to be outside of single quotes).
|
||||
set +e
|
||||
# The $MARIADB is intentionally used to expand into a command and arguments
|
||||
# shellcheck disable=SC2086
|
||||
echo '
|
||||
SELECT CONCAT("select count(*) into @discard from '\''", TABLE_SCHEMA, "'\''.'\''", TABLE_NAME, "'\''")
|
||||
FROM information_schema.TABLES WHERE TABLE_SCHEMA<>"INFORMATION_SCHEMA" AND TABLE_SCHEMA<>"PERFORMANCE_SCHEMA"
|
||||
AND (ENGINE="MyISAM" OR ENGINE="Aria")
|
||||
' | \
|
||||
LC_ALL=C "$MARIADB" --skip-column-names --batch | \
|
||||
xargs --no-run-if-empty -i "$MARIADB" --skip-column-names --silent --batch --force -e "{}" &> "${tempfile}"
|
||||
LC_ALL=C $MARIADB --skip-column-names --batch | \
|
||||
xargs --no-run-if-empty -i $MARIADB --skip-column-names --silent --batch --force -e "{}" &> "${tempfile}"
|
||||
set -e
|
||||
|
||||
if [ -s "$tempfile" ]
|
||||
|
|
Loading…
Reference in a new issue