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