Fixed the Start-up Failure in the Dualstack Env
[holmes/engine-management.git] / engine-d-standalone / src / main / assembly / bin / run.sh
index 83b5275..f565e2e 100644 (file)
@@ -57,7 +57,7 @@ else
     sed -i "s|password:.*|password: $JDBC_PASSWORD|" "$main_path/conf/engine-d.yml"
 fi
 
-export SERVICE_IP=`hostname -i`
+export SERVICE_IP=`hostname -i | awk '{print $1}'`
 echo SERVICE_IP=${SERVICE_IP}
 
 if [ ! -z ${TESTING} ] && [ ${TESTING} = 1 ]; then