Skip to content

Commit

Permalink
Deb: debian-start.inc - do not quote exe variables
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Dec 14, 2022
1 parent 0f351b6 commit 97c6cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debian/additions/debian-start.inc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function check_for_crashed_tables() {
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'\'' )' | \
xargs -i "${MARIADB}" --skip-column-names --silent --batch \
xargs -i ${MARIADB} --skip-column-names --silent --batch \
--force -e "{}" &>"${tempfile}"
set -e

Expand Down Expand Up @@ -72,7 +72,7 @@ function check_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');" | "$MARIADB" --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 )
if [ "$ret" -ne "0" ]; then
logger -p daemon.warn -i -t"$0" "WARNING: mysql.user contains $ret root accounts without password!"
fi
Expand Down

0 comments on commit 97c6cd9

Please sign in to comment.