diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh
index 5a6b11fb19bed9b6c04d3e8cc40e8bcf8068ae48..ba95ff3b5b90a7318fe45df59679ed27db67c7c9 100644
--- a/scripts/mysql_install_db.sh
+++ b/scripts/mysql_install_db.sh
@@ -136,7 +136,7 @@ then
   fi
 fi
 
-if test "$ip_only" ="1"
+if test "$ip_only" = "1"
 then
   ip=`echo "$resolved" | awk '/ /{print $6}'`
   hostname=$ip