Skip to content

Commit 9ab3794

Browse files
committed
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
1 parent 1c8af2a commit 9ab3794

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

debian/additions/debian-start.inc.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ function check_for_crashed_tables() {
3131
# Note that inside single quotes must be quoted with '\'' (to be outside of single quotes).
3232
set +e
3333
# The $MARIADB is intentionally used to expand into a command and arguments
34+
# shellcheck disable=SC2086
3435
echo '
3536
SELECT CONCAT("select count(*) into @discard from '\''", TABLE_SCHEMA, "'\''.'\''", TABLE_NAME, "'\''")
3637
FROM information_schema.TABLES WHERE TABLE_SCHEMA<>"INFORMATION_SCHEMA" AND TABLE_SCHEMA<>"PERFORMANCE_SCHEMA"
3738
AND (ENGINE="MyISAM" OR ENGINE="Aria")
3839
' | \
39-
LC_ALL=C "$MARIADB" --skip-column-names --batch | \
40-
xargs --no-run-if-empty -i "$MARIADB" --skip-column-names --silent --batch --force -e "{}" &> "${tempfile}"
40+
LC_ALL=C $MARIADB --skip-column-names --batch | \
41+
xargs --no-run-if-empty -i $MARIADB --skip-column-names --silent --batch --force -e "{}" &> "${tempfile}"
4142
set -e
4243

4344
if [ -s "$tempfile" ]

0 commit comments

Comments
 (0)