From a79abb6517f2fa68b48e61aa3354a0631e3a63f7 Mon Sep 17 00:00:00 2001 From: Tuukka Pasanen Date: Fri, 3 Mar 2023 14:27:30 +0200 Subject: [PATCH] MDEV-30778: Remove Awk from mysql_install_db Commit reduces need of AWK-command at least for Debian mariadb-server-compat package. Commit removes need of AWK-command from scripts/mysql_install_db.sh script. AWK command is replace by purely Posix sh compiliant version. --- scripts/mysql_install_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh index eec985396c4..b28e533ecd8 100644 --- a/scripts/mysql_install_db.sh +++ b/scripts/mysql_install_db.sh @@ -476,7 +476,7 @@ fi if test "$ip_only" -eq 1 then - hostname=`echo "$resolved" | awk '/ /{print $6}'` + hostname=`echo "$resolved" | while read a; do echo ${a##* }; done` fi # Create database directories