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.
This commit is contained in:
Tuukka Pasanen 2023-03-03 14:27:30 +02:00 committed by Daniel Black
parent 92772485b7
commit a79abb6517

View file

@ -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