summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTuukka Pasanen <tuukka.pasanen@ilmi.fi>2023-03-03 14:27:30 +0200
committerDaniel Black <daniel@mariadb.org>2023-03-24 12:54:21 +1100
commita79abb6517f2fa68b48e61aa3354a0631e3a63f7 (patch)
tree5efdaedcbbccfa00f1f4fcf282a1921b40d2898e /scripts
parent92772485b75045501fef4f26d0e6514e9042116b (diff)
downloadmariadb-git-a79abb6517f2fa68b48e61aa3354a0631e3a63f7.tar.gz
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysql_install_db.sh2
1 files changed, 1 insertions, 1 deletions
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